提交 ab737f6b 编写于 作者: T 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.
上级 fc7a9dfd
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册