aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-02-08 09:05:24 +0100
committerJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-02-08 09:05:24 +0100
commit9c4ae62976adec2eb00f3e7c51f8dcfc986db390 (patch)
tree1170669d7cd16c65f9fdf27a74d7195f76d72665
parente88d7d831b34b84fd5d9f944305e5409e7e01d94 (diff)
downloadegawk-9c4ae62976adec2eb00f3e7c51f8dcfc986db390.tar.gz
egawk-9c4ae62976adec2eb00f3e7c51f8dcfc986db390.tar.bz2
egawk-9c4ae62976adec2eb00f3e7c51f8dcfc986db390.zip
Cleaned up a bit more after a test on Ubuntu 12.04 LTS.
-rw-r--r--CMakeLists.txt11
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)