Fix potential collisions on HAVE_STDINT_H (renamed to FOUG_HAVE_STDINT_H)
This commit is contained in:
parent
0b2424570e
commit
27f320012b
@ -11,7 +11,7 @@ option(WITH_LIBSTL "Build the libSTL module" ON)
|
||||
file(GLOB ALL_SRC_FILES src/c/*)
|
||||
|
||||
# Have <stdint.h> ?
|
||||
check_include_files(stdint.h HAVE_STDINT_H)
|
||||
check_include_files(stdint.h FOUG_HAVE_STDINT_H)
|
||||
configure_file(src/c/config.h.cmake config.h @ONLY)
|
||||
include_directories(${CMAKE_BINARY_DIR}) # For generated "config.h"
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
#ifndef FOUG_CONFIG_H_CMAKE
|
||||
#define FOUG_CONFIG_H_CMAKE
|
||||
|
||||
#ifndef HAVE_STDINT_H
|
||||
#cmakedefine HAVE_STDINT_H
|
||||
#endif /* HAVE_STDINT_H */
|
||||
#ifndef FOUG_HAVE_STDINT_H
|
||||
#cmakedefine FOUG_HAVE_STDINT_H
|
||||
#endif /* FOUG_HAVE_STDINT_H */
|
||||
|
||||
#endif /* FOUG_CONFIG_H_CMAKE */
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "config.h" /* Generated by build system */
|
||||
|
||||
#ifdef HAVE_STDINT_H
|
||||
#ifdef FOUG_HAVE_STDINT_H
|
||||
# include <stdint.h>
|
||||
#else
|
||||
typedef char int8_t;
|
||||
|
Loading…
Reference in New Issue
Block a user