mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Fix Windows portability issue in 23a27b039d
.
_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:
@ -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);
|
||||||
|
Reference in New Issue
Block a user