Handle 32-bit time size
[shibboleth/cpp-opensaml.git] / saml / internal.h
index 7caa141..0877395 100644 (file)
 #endif
 #endif
 
+#if SIZEOF_TIME_T == 8
+# define SAMLTIME_MAX LLONG_MAX
+#elif SIZEOF_TIME_T == 4
+# define SAMLTIME_MAX LONG_MAX
+#endif
+
 #define SAML_LOGCAT "OpenSAML"
 
 namespace opensaml {