Curl_gmtime: avoid future mistakes

Document Curl_gmtime() and define away the old functions so that they
won't be used internally again by mistake.
This commit is contained in:
Daniel Stenberg
2011-02-07 15:09:24 +01:00
parent 54d9f060b4
commit 0696260122
2 changed files with 12 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -488,6 +488,8 @@ typedef int sig_atomic_t;
#define ZERO_NULL 0
#define gmtime(x) do_not_use_gmtime_use_Curl_gmtime()
#define gmtime_r(x,y) do_not_use_gmtime_r_use_Curl_gmtime()
#endif /* __SETUP_ONCE_H */