Moved header detection defines to config.h

This commit is contained in:
Armin Novak 2015-12-17 11:28:03 +01:00
parent d339b986de
commit 120e5e2d43
3 changed files with 6 additions and 8 deletions

View File

@ -345,14 +345,6 @@ else()
set(HAVE_SYS_FILIO_H 1)
endif()
if(HAVE_STDBOOL_H)
add_definitions(-DHAVE_STDBOOL_H)
endif()
if(HAVE_STDINT_H)
add_definitions(-DHAVE_STDINT_H)
endif()
if(NOT IOS)
check_struct_has_member("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF)
else()

View File

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

View File

@ -23,6 +23,10 @@
/* 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/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <wchar.h>
#include <winpr/windows.h>