Fixed stdint.h and stdbool.h detection.

This commit is contained in:
Armin Novak 2016-02-02 18:24:30 +01:00
parent 5c9707505b
commit 9b0ef3a4ec
7 changed files with 10 additions and 30 deletions

View File

@ -361,8 +361,6 @@ if(NOT IOS)
check_include_files(fcntl.h HAVE_FCNTL_H) check_include_files(fcntl.h HAVE_FCNTL_H)
check_include_files(unistd.h HAVE_UNISTD_H) check_include_files(unistd.h HAVE_UNISTD_H)
check_include_files(execinfo.h HAVE_EXECINFO_H) check_include_files(execinfo.h HAVE_EXECINFO_H)
check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(stdbool.h HAVE_STDBOOL_H)
check_include_files(inttypes.h HAVE_INTTYPES_H) check_include_files(inttypes.h HAVE_INTTYPES_H)
check_include_files(sys/modem.h HAVE_SYS_MODEM_H) check_include_files(sys/modem.h HAVE_SYS_MODEM_H)
check_include_files(sys/filio.h HAVE_SYS_FILIO_H) check_include_files(sys/filio.h HAVE_SYS_FILIO_H)
@ -373,8 +371,6 @@ if(NOT IOS)
else() else()
set(HAVE_FCNTL_H 1) set(HAVE_FCNTL_H 1)
set(HAVE_UNISTD_H 1) set(HAVE_UNISTD_H 1)
set(HAVE_STDINT_H 1)
set(HAVE_STDBOOL_H 0)
set(HAVE_INTTYPES_H 1) set(HAVE_INTTYPES_H 1)
set(HAVE_SYS_FILIO_H 1) set(HAVE_SYS_FILIO_H 1)
endif() endif()

View File

@ -4,8 +4,6 @@
/* Include files */ /* Include files */
#cmakedefine HAVE_FCNTL_H #cmakedefine HAVE_FCNTL_H
#cmakedefine HAVE_UNISTD_H #cmakedefine HAVE_UNISTD_H
#cmakedefine HAVE_STDINT_H
#cmakedefine HAVE_STDBOOL_H
#cmakedefine HAVE_INTTYPES_H #cmakedefine HAVE_INTTYPES_H
#cmakedefine HAVE_SYS_MODEM_H #cmakedefine HAVE_SYS_MODEM_H
#cmakedefine HAVE_SYS_FILIO_H #cmakedefine HAVE_SYS_FILIO_H

View File

@ -26,10 +26,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <freerdp/codec/nsc.h> #include <freerdp/codec/nsc.h>

View File

@ -25,10 +25,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <freerdp/codec/nsc.h> #include <freerdp/codec/nsc.h>

View File

@ -28,10 +28,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/tchar.h> #include <winpr/tchar.h>
#include <winpr/sysinfo.h> #include <winpr/sysinfo.h>

View File

@ -55,6 +55,14 @@ set(WINPR_VERSION "${WINPR_VERSION_MAJOR}.${WINPR_VERSION_MINOR}.${WINPR_VERSION
set(WINPR_VERSION_FULL "${WINPR_VERSION}") set(WINPR_VERSION_FULL "${WINPR_VERSION}")
set(WINPR_API_VERSION "${WINPR_VERSION_MAJOR}") set(WINPR_API_VERSION "${WINPR_VERSION_MAJOR}")
if(NOT IOS)
check_include_files(stdbool.h WINPR_HAVE_STDBOOL_H)
check_include_files(stdint.h WINPR_HAVE_STDINT_H)
else(NOT IOS)
set(WINPR_HAVE_STDBOOL_H 1)
set(WINPR_HAVE_STDINT_H 1)
endif(NOT IOS)
if(FREERDP_BUILD) if(FREERDP_BUILD)
set(WINPR_VERSION_FULL ${WINPR_VERSION_FULL} PARENT_SCOPE) set(WINPR_VERSION_FULL ${WINPR_VERSION_FULL} PARENT_SCOPE)
set(WINPR_VERSION ${WINPR_VERSION} PARENT_SCOPE) set(WINPR_VERSION ${WINPR_VERSION} PARENT_SCOPE)
@ -70,7 +78,6 @@ else()
check_include_files(fcntl.h HAVE_FCNTL_H) check_include_files(fcntl.h HAVE_FCNTL_H)
check_include_files(unistd.h HAVE_UNISTD_H) check_include_files(unistd.h HAVE_UNISTD_H)
check_include_files(execinfo.h HAVE_EXECINFO_H) check_include_files(execinfo.h HAVE_EXECINFO_H)
check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(inttypes.h HAVE_INTTYPES_H) check_include_files(inttypes.h HAVE_INTTYPES_H)
check_include_files(sys/modem.h HAVE_SYS_MODEM_H) check_include_files(sys/modem.h HAVE_SYS_MODEM_H)
check_include_files(sys/filio.h HAVE_SYS_FILIO_H) check_include_files(sys/filio.h HAVE_SYS_FILIO_H)
@ -80,7 +87,6 @@ else()
else() else()
set(HAVE_FCNTL_H 1) set(HAVE_FCNTL_H 1)
set(HAVE_UNISTD_H 1) set(HAVE_UNISTD_H 1)
set(HAVE_STDINT_H 1)
set(HAVE_INTTYPES_H 1) set(HAVE_INTTYPES_H 1)
set(HAVE_SYS_FILIO_H 1) set(HAVE_SYS_FILIO_H 1)
endif() endif()

View File

@ -21,18 +21,10 @@
#define WINPR_WTYPES_H #define WINPR_WTYPES_H
/* Set by CMake during configuration. */ /* Set by CMake during configuration. */
#if defined @HAVE_STDINT_H@ #cmakedefine01 WINPR_HAVE_STDINT_H
#define WINPR_HAVE_STDINT_H 1
#else
#define WINPR_HAVE_STDINT_H 0
#endif
/* Set by CMake during configuration. */ /* Set by CMake during configuration. */
#if defined @HAVE_STDBOOL_H@ #cmakedefine01 WINPR_HAVE_STDBOOL_H
#define WINPR_HAVE_STDBOOL_H 1
#else
#define WINPR_HAVE_STDBOOL_H 0
#endif
/* MSDN: Windows Data Types - http://msdn.microsoft.com/en-us/library/aa383751/ */ /* MSDN: Windows Data Types - http://msdn.microsoft.com/en-us/library/aa383751/ */
/* [MS-DTYP]: Windows Data Types - http://msdn.microsoft.com/en-us/library/cc230273/ */ /* [MS-DTYP]: Windows Data Types - http://msdn.microsoft.com/en-us/library/cc230273/ */