Remove code related to HAVE_CONFIG_H
This commit is contained in:
parent
4a4208a15f
commit
1226f0f21c
2 changed files with 2 additions and 13 deletions
|
@ -7,9 +7,6 @@ link_directories(${CMAKE_BINARY_DIR}/src/common
|
||||||
${CMAKE_BINARY_DIR}/src/compat
|
${CMAKE_BINARY_DIR}/src/compat
|
||||||
${CMAKE_BINARY_DIR}/src/win32)
|
${CMAKE_BINARY_DIR}/src/win32)
|
||||||
|
|
||||||
#this is needed to be compatible with existent code
|
|
||||||
add_definitions("-DHAVE_CONFIG_H")
|
|
||||||
|
|
||||||
if(LUA_FOUND)
|
if(LUA_FOUND)
|
||||||
add_definitions("-DWITH_LUA")
|
add_definitions("-DWITH_LUA")
|
||||||
endif(LUA_FOUND)
|
endif(LUA_FOUND)
|
||||||
|
|
|
@ -22,16 +22,8 @@
|
||||||
#ifndef INCLUDED_SETUP_BEFORE_H
|
#ifndef INCLUDED_SETUP_BEFORE_H
|
||||||
#define INCLUDED_SETUP_BEFORE_H
|
#define INCLUDED_SETUP_BEFORE_H
|
||||||
|
|
||||||
/* get autoconf defines */
|
#include "config.h"
|
||||||
#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
|
|
||||||
|
|
||||||
/* This file contains compile-time configuration parameters including
|
/* This file contains compile-time configuration parameters including
|
||||||
* debugging options, default configuration values, and format strings.
|
* debugging options, default configuration values, and format strings.
|
||||||
|
|
Loading…
Reference in a new issue