mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Fix Windows portability issue in 23a27b039d94ba35.
_strtoui64() is available in MSVC builds, but apparently not with other Windows toolchains. Thanks to Petr Jelinek for the diagnosis.
This commit is contained in:
parent
fc7a9dfddb
commit
ab737f6ba9
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user