From bff6afb9717f2ec7dafa20c4e2b7f00236ec7bfe Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 25 Jan 2010 01:02:27 +0200 Subject: [PATCH] Removed my_strptime(). It was just causing problems and wasn't used anywhere after all. --HG-- branch : HEAD --- src/lib/compat.c | 7 ------- src/lib/compat.h | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/lib/compat.c b/src/lib/compat.c index 0c9cc3f7ea..a1369cd69f 100644 --- a/src/lib/compat.c +++ b/src/lib/compat.c @@ -8,7 +8,6 @@ #ifdef PREAD_WRAPPERS # define _XOPEN_SOURCE 500 /* Linux */ #endif -#include /* strptime() is giving trouble if this is moved below.. */ #define IN_COMPAT_C #include "lib.h" @@ -309,9 +308,3 @@ int i_my_clock_gettime(int clk_id, struct timespec *tp) return 0; } #endif - -#undef strptime -char *my_strptime(const char *s, const char *format, struct tm *tm) -{ - return strptime(s, format, tm); -} diff --git a/src/lib/compat.h b/src/lib/compat.h index 6e47c73a2a..7623b109c6 100644 --- a/src/lib/compat.h +++ b/src/lib/compat.h @@ -207,12 +207,6 @@ int i_my_vsnprintf(char *str, size_t size, const char *format, va_list ap); 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))) -- 2.47.3