diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-17 21:21:21 +0000 |
---|---|---|
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-17 21:21:21 +0000 |
commit | eeb4db3234ecde76bd8351da9ad6318f3d40545e (patch) | |
tree | d82de5063dd1c747a8753c92b0d4ec4873da1008 /src | |
parent | 107681258b57390ade604c4f4a8dc1e30cfae7ef (diff) | |
download | gflags-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |