Skip to content

Commit ab737f6

Browse files
committed
Fix Windows portability issue in 23a27b0.
_strtoui64() is available in MSVC builds, but apparently not with other Windows toolchains. Thanks to Petr Jelinek for the diagnosis.
1 parent fc7a9df commit ab737f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/numutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ pg_ltostr(char *str, int32 value)
402402
uint64
403403
pg_strtouint64(const char *str, char **endptr, int base)
404404
{
405-
#ifdef WIN32
405+
#ifdef _MSC_VER /* MSVC only */
406406
return _strtoui64(str, endptr, base);
407407
#elif defined(HAVE_STRTOULL) && SIZEOF_LONG < 8
408408
return strtoull(str, endptr, base);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy