Commit eeb4db32 authored by Andreas Schuh's avatar Andreas Schuh

Use _strtoi64 and _strtoui64 on Windows.

parent 10768125
...@@ -64,8 +64,11 @@ extern GFLAGS_DLL_DECL void (*gflags_exitfunc)(int); ...@@ -64,8 +64,11 @@ extern GFLAGS_DLL_DECL void (*gflags_exitfunc)(int);
#elif defined(GFLAGS_HAVE_STRTOQ) #elif defined(GFLAGS_HAVE_STRTOQ)
# define strto64 strtoq # define strto64 strtoq
# define strtou64 strtouq # 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! // Neither strtoll nor strtoq are defined. I hope strtol works!
#else
# define strto64 strtol # define strto64 strtol
# define strtou64 strtoul # define strtou64 strtoul
#endif #endif
......
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