r18834 - gnucash/trunk/lib/libc - If gmtime_r is defined as a macro, undef it

Phil Longstaff plongstaff at code.gnucash.org
Fri Mar 5 12:55:01 EST 2010


Author: plongstaff
Date: 2010-03-05 12:55:01 -0500 (Fri, 05 Mar 2010)
New Revision: 18834
Trac: http://svn.gnucash.org/trac/changeset/18834

Modified:
   gnucash/trunk/lib/libc/gmtime_r.c
Log:
If gmtime_r is defined as a macro, undef it


Modified: gnucash/trunk/lib/libc/gmtime_r.c
===================================================================
--- gnucash/trunk/lib/libc/gmtime_r.c	2010-03-05 17:01:38 UTC (rev 18833)
+++ gnucash/trunk/lib/libc/gmtime_r.c	2010-03-05 17:55:01 UTC (rev 18834)
@@ -29,6 +29,10 @@
 
 #if HAVE_PTHREAD_MUTEX_INIT
 #include <pthread.h>
+#ifdef gmtime_r
+#undef gmtime_r
+#endif
+
 struct tm *
 gmtime_r(const time_t *const timep, struct tm *p_tm)
 {



More information about the gnucash-changes mailing list