diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-19 16:53:19 +0000 |
---|---|---|
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-19 16:53:19 +0000 |
commit | acb460af9e66d83401341d9af04984ce53eed0f0 (patch) | |
tree | 2cd3915204629c1a4f8b1993b5f817dc4e422568 /src | |
parent | 41181669d15b8630e63a449388401d16fc1c2741 (diff) | |
download | gflags-acb460af9e66d83401341d9af04984ce53eed0f0.tar.gz gflags-acb460af9e66d83401341d9af04984ce53eed0f0.tar.bz2 gflags-acb460af9e66d83401341d9af04984ce53eed0f0.zip |
Use strtoll as defined by windows_port.h for strto64.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -58,16 +58,13 @@ namespace GFLAGS_NAMESPACE { // This is used for unittests for death-testing. It is defined in gflags.cc. extern GFLAGS_DLL_DECL void (*gflags_exitfunc)(int); -// Work properly if either strtoll or strtoq is on this system -#if defined(HAVE_STRTOLL) +// Work properly if either strtoll or strtoq is on this system. +#if defined(strtoll) || defined(HAVE_STRTOLL) # define strto64 strtoll # define strtou64 strtoull #elif defined(HAVE_STRTOQ) # define strto64 strtoq # define strtou64 strtouq -#elif defined(OS_WINDOWS) -# define strto64 _strtoi64 -# define strtou64 _strtoui64 // Neither strtoll nor strtoq are defined. I hope strtol works! #else # define strto64 strtol |