summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-17 21:21:21 +0000
committerAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-17 21:21:21 +0000
commiteeb4db3234ecde76bd8351da9ad6318f3d40545e (patch)
treed82de5063dd1c747a8753c92b0d4ec4873da1008 /src
parent107681258b57390ade604c4f4a8dc1e30cfae7ef (diff)
downloadgflags-eeb4db3234ecde76bd8351da9ad6318f3d40545e.tar.gz
gflags-eeb4db3234ecde76bd8351da9ad6318f3d40545e.tar.bz2
gflags-eeb4db3234ecde76bd8351da9ad6318f3d40545e.zip
Use _strtoi64 and _strtoui64 on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 3856365..ce42082 100644
--- a/src/util.h
+++ b/src/util.h
@@ -64,8 +64,11 @@ extern GFLAGS_DLL_DECL void (*gflags_exitfunc)(int);
#elif defined(GFLAGS_HAVE_STRTOQ)
# define strto64 strtoq
# define strtou64 strtouq
-#else
+#elif defined(_WIN32) && !defined(__MINGW32__) && !defined(__MINGW64__)
+# define strto64 _strtoi64
+# define strtou64 _strtoui64
// Neither strtoll nor strtoq are defined. I hope strtol works!
+#else
# define strto64 strtol
# define strtou64 strtoul
#endif