aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/sysdep.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sysdep.h b/lib/sysdep.h
index 7502035..a11080a 100644
--- a/lib/sysdep.h
+++ b/lib/sysdep.h
@@ -25,6 +25,13 @@ typedef u16 word;
#ifdef PCI_OS_WINDOWS
#define strcasecmp _strcmpi
#define strncasecmp _strnicmp
+#if defined(_MSC_VER) && _MSC_VER < 1800
+#if _MSC_VER < 1300
+#define strtoull strtoul
+#else
+#define strtoull _strtoui64
+#endif
+#endif
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf
#define vsnprintf _vsnprintf