Commit acb460af authored by Andreas Schuh's avatar Andreas Schuh

Use strtoll as defined by windows_port.h for strto64.

parent 41181669
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment