Author: rleigh
Date: Wed Jun 14 21:27:20 2017
New Revision: 1798766
URL: http://svn.apache.org/viewvc?rev=1798766&view=rev
Log:
xercesc: PlatformUtils: Include sys/timeb.h conditionally
Remove deprecation warning by including sys/timeb.h only if it
is going to be used.
Modified:
xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp
Modified: xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp?rev=1798766&r1=1798765&r2=1798766&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp Wed Jun 14 21:27:20 2017
@@ -34,7 +34,7 @@
#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
-#if HAVE_SYS_TIMEB_H
+#if !HAVE_GETTIMEOFDAY && HAVE_SYS_TIMEB_H
# include <sys/timeb.h>
#endif
#if HAVE_CPUID_H && !XERCES_HAVE_INTRIN_H
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]