Commit ab737f6b authored by Tom Lane's avatar Tom Lane

Fix Windows portability issue in 23a27b03.

_strtoui64() is available in MSVC builds, but apparently not with
other Windows toolchains.  Thanks to Petr Jelinek for the diagnosis.
parent fc7a9dfd
...@@ -402,7 +402,7 @@ pg_ltostr(char *str, int32 value) ...@@ -402,7 +402,7 @@ pg_ltostr(char *str, int32 value)
uint64 uint64
pg_strtouint64(const char *str, char **endptr, int base) pg_strtouint64(const char *str, char **endptr, int base)
{ {
#ifdef WIN32 #ifdef _MSC_VER /* MSVC only */
return _strtoui64(str, endptr, base); return _strtoui64(str, endptr, base);
#elif defined(HAVE_STRTOULL) && SIZEOF_LONG < 8 #elif defined(HAVE_STRTOULL) && SIZEOF_LONG < 8
return strtoull(str, endptr, base); return strtoull(str, endptr, base);
......
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