It was just causing problems and wasn't used anywhere after all.
--HG--
branch : HEAD
#ifdef PREAD_WRAPPERS
# define _XOPEN_SOURCE 500 /* Linux */
#endif
-#include <time.h> /* strptime() is giving trouble if this is moved below.. */
#define IN_COMPAT_C
#include "lib.h"
return 0;
}
#endif
-
-#undef strptime
-char *my_strptime(const char *s, const char *format, struct tm *tm)
-{
- return strptime(s, format, tm);
-}
int i_my_clock_gettime(int clk_id, struct timespec *tp);
#endif
-/* glibc wants _XOPEN_SOURCE defined for strptime(), but doing that breaks
- other things. So we'll create this wrapper to work around the problems. */
-#define strptime my_strptime
-struct tm;
-char *my_strptime(const char *s, const char *format, struct tm *tm);
-
/* ctype.h isn't safe with signed chars,
use our own instead if really needed */
#define i_toupper(x) ((char) toupper((int) (unsigned char) (x)))