From 3c0a70640641f39ddd799b4299e5b29b17135138 Mon Sep 17 00:00:00 2001 From: Andrew Savinykh Date: Thu, 17 Nov 2016 15:13:07 +1300 Subject: Fix MSVC build --- src/strptime.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/strptime.cc b/src/strptime.cc index 6f670baf..069b9267 100644 --- a/src/strptime.cc +++ b/src/strptime.cc @@ -21,6 +21,7 @@ #include #include +#if defined(__CYGWIN__) // Define strnicmp for Cygwin. #ifndef strcmpi #define strcmpi strcasecmp @@ -34,6 +35,7 @@ #ifndef strnicmp #define strnicmp strncasecmp #endif +#endif static const char* kWeekFull[] = { "Sunday", "Monday", "Tuesday", "Wednesday", -- cgit v1.2.3