summaryrefslogtreecommitdiff
path: root/lib/parsedate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-02-14 13:42:01 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-02-14 13:42:01 +0100
commitf19ace8d33e468969d3329e6bb17d6c032147e91 (patch)
treec7d0a0b28fb57ad041009535ca9e88feeb411993 /lib/parsedate.c
parentc2dff28c418b81bf5d9712003580d45b0666386a (diff)
downloadcurl-f19ace8d33e468969d3329e6bb17d6c032147e91.tar.gz
gmtime: remove define
It turns out some systems rely on the gmtime or gmtime_r to be defined already in the system headers and thus my "precaution" redefining of them only caused trouble. They are now removed.
Diffstat (limited to 'lib/parsedate.c')
-rw-r--r--lib/parsedate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsedate.c b/lib/parsedate.c
index 1d7f035f2..1e9381c7d 100644
--- a/lib/parsedate.c
+++ b/lib/parsedate.c
@@ -529,9 +529,9 @@ CURLcode Curl_gmtime(time_t intime, struct tm *store)
const struct tm *tm;
#ifdef HAVE_GMTIME_R
/* thread-safe version */
- tm = (struct tm *)(gmtime_r)(&intime, store);
+ tm = (struct tm *)gmtime_r(&intime, store);
#else
- tm = (gmtime)(&intime);
+ tm = gmtime(&intime);
if(tm)
*store = *tm; /* copy the pointed struct to the local copy */
#endif