From 9d989adec01904ad5a3c1021e4f610c39fa27b94 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 28 Jun 2017 00:07:33 +0200 Subject: win32/strptime: ensure that strptime()/localtime_r() are declared When `#include`ing libbb.h, it implicitly includes mingw.h (with a prototype for strptime()) and it also defines _POSIX_THREAD_SAFE_FUNCTIONS so that the time.h header declares localtime_r(). Signed-off-by: Johannes Schindelin Signed-off-by: Ron Yorston --- win32/strptime.c | 1 + 1 file changed, 1 insertion(+) (limited to 'win32') diff --git a/win32/strptime.c b/win32/strptime.c index 89fb8b736..f84b8dbc0 100644 --- a/win32/strptime.c +++ b/win32/strptime.c @@ -21,6 +21,7 @@ * and lightly edited. */ +#include "libbb.h" #include #include -- cgit v1.2.3-55-g6feb