summaryrefslogtreecommitdiff
path: root/src/strptime.cc
diff options
context:
space:
mode:
authorAndrew Savinykh <github.com@brutsoft.com>2016-11-17 15:13:07 +1300
committerAndrew Savinykh <github.com@brutsoft.com>2016-11-17 15:13:07 +1300
commit3c0a70640641f39ddd799b4299e5b29b17135138 (patch)
tree43a7c66514b8557eaf54232c742d8733d5a26bd0 /src/strptime.cc
parent3302d15cc5951d6663306f23d4dae242540ab95f (diff)
downloadfork-ledger-3c0a70640641f39ddd799b4299e5b29b17135138.tar.gz
fork-ledger-3c0a70640641f39ddd799b4299e5b29b17135138.tar.bz2
fork-ledger-3c0a70640641f39ddd799b4299e5b29b17135138.zip
Fix MSVC build
Diffstat (limited to 'src/strptime.cc')
-rw-r--r--src/strptime.cc2
1 files changed, 2 insertions, 0 deletions
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 <ctype.h>
#include <string.h>
+#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",