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.
This commit is contained in:
Daniel Stenberg
2011-02-14 13:42:01 +01:00
parent c2dff28c41
commit f19ace8d33
2 changed files with 2 additions and 5 deletions

View File

@@ -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