You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by rl...@apache.org on 2017/08/07 08:56:03 UTC

svn commit: r1804297 - in /xerces/c/trunk: cmake/XercesFunctions.cmake config.h.cmake.in src/xercesc/util/XMLDateTime.cpp

Author: rleigh
Date: Mon Aug  7 08:56:02 2017
New Revision: 1804297

URL: http://svn.apache.org/viewvc?rev=1804297&view=rev
Log:
XMLDateTime: Use config.h for timegm and add corresponding cmake checks

Modified:
    xerces/c/trunk/cmake/XercesFunctions.cmake
    xerces/c/trunk/config.h.cmake.in
    xerces/c/trunk/src/xercesc/util/XMLDateTime.cpp

Modified: xerces/c/trunk/cmake/XercesFunctions.cmake
URL: http://svn.apache.org/viewvc/xerces/c/trunk/cmake/XercesFunctions.cmake?rev=1804297&r1=1804296&r2=1804297&view=diff
==============================================================================
--- xerces/c/trunk/cmake/XercesFunctions.cmake (original)
+++ xerces/c/trunk/cmake/XercesFunctions.cmake Mon Aug  7 08:56:02 2017
@@ -49,6 +49,7 @@ check_function_exists(strrchr HAVE_STRRC
 check_function_exists(strstr HAVE_STRSTR)
 check_function_exists(strtol HAVE_STRTOL)
 check_function_exists(strtoul HAVE_STRTOUL)
+check_function_exists(timegm HAVE_TIMEGM)
 check_function_exists(towupper HAVE_TOWUPPER)
 check_function_exists(towlower HAVE_TOWLOWER)
 check_function_exists(mblen HAVE_MBLEN)

Modified: xerces/c/trunk/config.h.cmake.in
URL: http://svn.apache.org/viewvc/xerces/c/trunk/config.h.cmake.in?rev=1804297&r1=1804296&r2=1804297&view=diff
==============================================================================
--- xerces/c/trunk/config.h.cmake.in (original)
+++ xerces/c/trunk/config.h.cmake.in Mon Aug  7 08:56:02 2017
@@ -81,6 +81,9 @@
 /* Define to 1 if you have the `gettimeofday' function. */
 #cmakedefine HAVE_GETTIMEOFDAY 1
 
+/* Define to 1 if you have the `gmtime_r' function. */
+#cmakedefine HAVE_GMTIME_R 1
+
 /* Define to 1 if you have the `iconv' function. */
 #cmakedefine HAVE_ICONV 1
 
@@ -249,6 +252,9 @@
 /* Define to 1 if you have the <sys/types.h> header file. */
 #cmakedefine HAVE_SYS_TYPES_H 1
 
+/* Define to 1 if you have the `timegm' function. */
+#cmakedefine HAVE_TIMEGM 1
+
 /* Define to 1 if you have the `towlower' function. */
 #cmakedefine HAVE_TOWLOWER 1
 

Modified: xerces/c/trunk/src/xercesc/util/XMLDateTime.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/XMLDateTime.cpp?rev=1804297&r1=1804296&r2=1804297&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLDateTime.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLDateTime.cpp Mon Aug  7 08:56:02 2017
@@ -22,6 +22,10 @@
 // ---------------------------------------------------------------------------
 //  Includes
 // ---------------------------------------------------------------------------
+#if HAVE_CONFIG_H
+#    include <config.h>
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org