Mercurial > dovecot > core-2.2
changeset 10579:28f35797059a HEAD
Removed my_strptime().
It was just causing problems and wasn't used anywhere after all.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Jan 2010 01:02:27 +0200 |
parents | a2ed5c020cfa |
children | 2af2a6afb3e5 |
files | src/lib/compat.c src/lib/compat.h |
diffstat | 2 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/compat.c Mon Jan 25 00:59:34 2010 +0200 +++ b/src/lib/compat.c Mon Jan 25 01:02:27 2010 +0200 @@ -8,7 +8,6 @@ #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" @@ -309,9 +308,3 @@ return 0; } #endif - -#undef strptime -char *my_strptime(const char *s, const char *format, struct tm *tm) -{ - return strptime(s, format, tm); -}
--- a/src/lib/compat.h Mon Jan 25 00:59:34 2010 +0200 +++ b/src/lib/compat.h Mon Jan 25 01:02:27 2010 +0200 @@ -207,12 +207,6 @@ 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)))