Remove code related to HAVE_CONFIG_H

This commit is contained in:
RElesgoe 2018-07-27 04:44:37 -07:00
parent 4a4208a15f
commit 1226f0f21c
2 changed files with 2 additions and 13 deletions

View file

@ -7,9 +7,6 @@ link_directories(${CMAKE_BINARY_DIR}/src/common
${CMAKE_BINARY_DIR}/src/compat
${CMAKE_BINARY_DIR}/src/win32)
#this is needed to be compatible with existent code
add_definitions("-DHAVE_CONFIG_H")
if(LUA_FOUND)
add_definitions("-DWITH_LUA")
endif(LUA_FOUND)

View file

@ -22,16 +22,8 @@
#ifndef INCLUDED_SETUP_BEFORE_H
#define INCLUDED_SETUP_BEFORE_H
/* get autoconf defines */
#ifdef HAVE_CONFIG_H
# include "config.h"
#else
# ifdef WIN32
# include "win32/configwin.h"
# else
# error "No config.h but not building on WIN32, how to configure the system?"
# endif
#endif
#include "config.h"
/* This file contains compile-time configuration parameters including
* debugging options, default configuration values, and format strings.