added HAVE_CONFIG_H define

This commit is contained in:
Anthony Pesch 2017-07-19 19:13:00 -04:00
parent 33f624228b
commit 287eeb5455
2 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,7 @@ check_function_exists(strnlen HAVE_STRNLEN)
check_function_exists(strnstr HAVE_STRNSTR)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/core/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/core/config.h)
list(APPEND RELIB_INCLUDES ${CMAKE_CURRENT_BINARY_DIR}/src)
list(APPEND RELIB_DEFS HAVE_CONFIG_H)
#--------------------------------------------------

View File

@ -4,7 +4,10 @@
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "core/config.h"
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>