mirror of https://github.com/inolen/redream.git
added HAVE_CONFIG_H define
This commit is contained in:
parent
33f624228b
commit
287eeb5455
|
@ -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)
|
||||
|
||||
|
||||
#--------------------------------------------------
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue