From 803ebf09045d48675938ab60c9721f7f22b97a06 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Thu, 29 Apr 2010 22:09:59 +0200 Subject: win32: add strptime() --- include/mingw.h | 2 +- win32/mingw.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/mingw.h b/include/mingw.h index 5294d9d6c..a97c347e1 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -250,7 +250,7 @@ int waitpid(pid_t pid, int *status, unsigned options); */ struct tm *gmtime_r(const time_t *timep, struct tm *result); struct tm *localtime_r(const time_t *timep, struct tm *result); -IMPL(strptime,char*,NULL,const char *s UNUSED_PARAM, const char *format UNUSED_PARAM, struct tm *tm UNUSED_PARAM); +char *strptime(const char *s, const char *format, struct tm *tm); /* * unistd.h diff --git a/win32/mingw.c b/win32/mingw.c index c87ce2a47..0a7345374 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -770,3 +770,8 @@ int mingw_unlink(const char *pathname) chmod(pathname, 0666); return unlink(pathname); } + +char *strptime(const char *s, const char *format, struct tm *tm) +{ + return NULL; +} -- cgit v1.2.3-55-g6feb