projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc7a9df
)
Fix Windows portability issue in 23a27b039d94ba35.
author
Tom Lane
Sun, 13 Mar 2016 03:34:47 +0000
(22:34 -0500)
committer
Tom Lane
Sun, 13 Mar 2016 03:34:47 +0000
(22:34 -0500)
_strtoui64() is available in MSVC builds, but apparently not with
other Windows toolchains. Thanks to Petr Jelinek for the diagnosis.
src/backend/utils/adt/numutils.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/numutils.c
b/src/backend/utils/adt/numutils.c
index da100f7c0f2d3f0d6635be84d467eecc74de0dd7..c1986193c8236605a7657529c3d4d48a30f8d64b 100644
(file)
--- a/
src/backend/utils/adt/numutils.c
+++ b/
src/backend/utils/adt/numutils.c
@@
-402,7
+402,7
@@
pg_ltostr(char *str, int32 value)
uint64
pg_strtouint64(const char *str, char **endptr, int base)
{
-#ifdef
WIN32
+#ifdef
_MSC_VER /* MSVC only */
return _strtoui64(str, endptr, base);
#elif defined(HAVE_STRTOULL) && SIZEOF_LONG < 8
return strtoull(str, endptr, base);