From be4fce5ed5f1c3f5a9699ed5ac49a49ed002affd Mon Sep 17 00:00:00 2001 From: Phil Longstaff Date: Fri, 5 Mar 2010 17:55:01 +0000 Subject: [PATCH] If gmtime_r is defined as a macro, undef it git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18834 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libc/gmtime_r.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/gmtime_r.c b/lib/libc/gmtime_r.c index 700cba52d0..f378ea52b5 100644 --- a/lib/libc/gmtime_r.c +++ b/lib/libc/gmtime_r.c @@ -29,6 +29,10 @@ #if HAVE_PTHREAD_MUTEX_INIT #include +#ifdef gmtime_r +#undef gmtime_r +#endif + struct tm * gmtime_r(const time_t *const timep, struct tm *p_tm) {