summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <jwiegley@gmail.com>2017-10-26 15:20:30 -0700
committerGitHub <noreply@github.com>2017-10-26 15:20:30 -0700
commit5ed80cf7cc1ffea41ba22c832c629727a1dca5c4 (patch)
treef807c5cb3029d2b21eac875477b6dd75d4ddbcf2 /src
parentc56839da68f29d0326b8c0fc3b6c911865297bf0 (diff)
parent3c0a70640641f39ddd799b4299e5b29b17135138 (diff)
downloadfork-ledger-5ed80cf7cc1ffea41ba22c832c629727a1dca5c4.tar.gz
fork-ledger-5ed80cf7cc1ffea41ba22c832c629727a1dca5c4.tar.bz2
fork-ledger-5ed80cf7cc1ffea41ba22c832c629727a1dca5c4.zip
Merge pull request #482 from AndrewSav/next
Fix MSVC build
Diffstat (limited to 'src')
-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",