https://issues.shibboleth.net/jira/browse/CPPOST-80
authorScott Cantor <cantor.2@osu.edu>
Sat, 8 Dec 2012 04:51:58 +0000 (04:51 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sat, 8 Dec 2012 04:51:58 +0000 (04:51 +0000)
config_win32.h
configure.ac
saml/internal.h

index 4d60586..7402cc1 100644 (file)
 /* #undef const */
 
 /* Define to `unsigned' if <sys/types.h> does not define. */
-/* #undef size_t */
-
-/* The size of a `time_t', as computed by sizeof. */
-#define SIZEOF_TIME_T 8
-
+/* #undef size_t */
\ No newline at end of file
index b85bf18..4d2b783 100644 (file)
@@ -70,7 +70,6 @@ AC_HEADER_DIRENT
 
 # Checks for library functions.
 AC_CHECK_FUNCS([strchr strdup strstr])
-AC_CHECK_SIZEOF(time_t)
 
 # checks for pthreads
 ACX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])
index 774f7fe..a017016 100644 (file)
@@ -80,11 +80,7 @@ using namespace xercesc;
 #endif
 #endif
 
-#if SIZEOF_TIME_T == 8
-# define SAMLTIME_MAX LLONG_MAX
-#elif SIZEOF_TIME_T == 4
-# define SAMLTIME_MAX INT_MAX
-#endif
+#define SAMLTIME_MAX (sizeof(time_t) == 8 ? LLONG_MAX : INT_MAX)
 
 #define SAML_LOGCAT "OpenSAML"