[cpp-opensaml COMMIT] in /branches/REL_2: config_win32.h configure.ac saml/internal.h
noreply at shibboleth.net
noreply at shibboleth.net
Fri Dec 7 23:51:58 EST 2012
Author: scantor
Date: Fri Dec 7 23:51:58 2012
New Revision: 756
URL: http://svn.shibboleth.net/view/cpp-opensaml?rev=756&view=rev
Log:
https://issues.shibboleth.net/jira/browse/CPPOST-80
Modified:
branches/REL_2/config_win32.h
branches/REL_2/configure.ac
branches/REL_2/saml/internal.h
Modified: branches/REL_2/config_win32.h
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/config_win32.h?rev=756&r1=755&r2=756&view=diff
==============================================================================
--- branches/REL_2/config_win32.h (original)
+++ branches/REL_2/config_win32.h Fri Dec 7 23:51:58 2012
@@ -112,8 +112,4 @@
/* #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 */
Modified: branches/REL_2/configure.ac
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/configure.ac?rev=756&r1=755&r2=756&view=diff
==============================================================================
--- branches/REL_2/configure.ac (original)
+++ branches/REL_2/configure.ac Fri Dec 7 23:51:58 2012
@@ -70,7 +70,6 @@
# 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"])
Modified: branches/REL_2/saml/internal.h
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/saml/internal.h?rev=756&r1=755&r2=756&view=diff
==============================================================================
--- branches/REL_2/saml/internal.h (original)
+++ branches/REL_2/saml/internal.h Fri Dec 7 23:51:58 2012
@@ -80,11 +80,7 @@
#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"
More information about the commits
mailing list