diff options
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f91900e..217097fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,9 +125,8 @@ DefineHFileIfAvailable(wctype.h HAVE_WCTYPE_H) DefineTypeIfAvailable(intmax_t INTMAX_T) DefineTypeIfAvailable(uintmax_t UINTMAX_T) -# These dont work, maybe CheckCSourceCompiles would be better. -add_definitions(-D TIME_T_IN_SYS_TYPES_H) -#DefineTypeIfAvailable("time_t" TIME_T_IN_SYS_TYPES_H) +# Some of these dont work, maybe CheckCSourceCompiles would be better. +DefineTypeIfAvailable("time_t" TIME_T_IN_SYS_TYPES_H) DefineTypeIfAvailable("wctype_t" WCTYPE_T) add_definitions(-D WINT_T) #DefineTypeIfAvailable("wint_t" WINT_T) @@ -137,10 +136,8 @@ add_definitions(-D HAVE_STRUCT_STAT_ST_BLKSIZE) #DefineStructHasMemberIfAvailable("struct stat" st_blksize bits/stat.h HAVE_STRUCT_STAT_ST_BLKSIZE) add_definitions(-D HAVE_ST_BLKSIZE) #DefineStructHasMemberIfAvailable("struct stat" st_blksize bits/stat.h HAVE_ST_BLKSIZE) -add_definitions(-D HAVE_TM_ZONE) -#DefineStructHasMemberIfAvailable("struct tm" tm_zone time.h HAVE_TM_ZONE) -add_definitions(-D HAVE_STRUCT_TM_TM_ZONE) -#DefineStructHasMemberIfAvailable("struct tm" tm_zone time.h HAVE_STRUCT_TM_TM_ZONE) +DefineStructHasMemberIfAvailable("struct tm" tm_zone time.h HAVE_TM_ZONE) +DefineStructHasMemberIfAvailable("struct tm" tm_zone time.h HAVE_STRUCT_TM_TM_ZONE) DefineHFileIfAvailable(sys/time.h HAVE_SYS_TIME_H) DefineFunctionIfAvailable(alarm HAVE_ALARM) |