From 1226f0f21c9eec9fe178e7b3a6a06a1bc3b81502 Mon Sep 17 00:00:00 2001 From: RElesgoe Date: Fri, 27 Jul 2018 04:44:37 -0700 Subject: [PATCH] Remove code related to `HAVE_CONFIG_H` --- src/CMakeLists.txt | 3 --- src/common/setup_before.h | 12 ++---------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a7753fe..7dc5936 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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) diff --git a/src/common/setup_before.h b/src/common/setup_before.h index a7bb72a..4598853 100644 --- a/src/common/setup_before.h +++ b/src/common/setup_before.h @@ -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.