r18828 - gnucash/trunk/lib/libc - Undefine localtime_r as a macro (new mingw pthreads package defines it)
Phil Longstaff
plongstaff at code.gnucash.org
Thu Mar 4 17:06:23 EST 2010
Author: plongstaff
Date: 2010-03-04 17:06:23 -0500 (Thu, 04 Mar 2010)
New Revision: 18828
Trac: http://svn.gnucash.org/trac/changeset/18828
Modified:
gnucash/trunk/lib/libc/localtime_r.c
Log:
Undefine localtime_r as a macro (new mingw pthreads package defines it)
Modified: gnucash/trunk/lib/libc/localtime_r.c
===================================================================
--- gnucash/trunk/lib/libc/localtime_r.c 2010-03-04 22:04:23 UTC (rev 18827)
+++ gnucash/trunk/lib/libc/localtime_r.c 2010-03-04 22:06:23 UTC (rev 18828)
@@ -8,6 +8,12 @@
#if HAVE_PTHREAD_MUTEX_INIT
#include <pthread.h>
+
+/* New mingw pthread package seems to define localtime_r as a macro */
+#ifdef localtime_r
+#undef localtime_r
+#endif
+
struct tm *
localtime_r(const time_t *const timep, struct tm *p_tm)
{
More information about the gnucash-changes
mailing list