Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd700e8d

Browse files
committed
Bump MIN_WINNT for MINGW to clear a build error
Because we have been setting this too low, there has been along-standing warning about a missing declaration for inet_pton().Modern gcc now considers this an error, so we have been getting failureson the buildfarm animal fairywren.Fix suggested by Thomas Munro.This isn't needed in later branches, as they already set MIN_WINNThigher, nor on earlier branches because they don't use inet_pton().Discussion:https://postgr.es/m/574fae43-c993-4a25-b0e5-04c3e9c36d6d@dunslane.net
1 parent92cc21d commitd700e8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/include/port/win32.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
* Make sure _WIN32_WINNT has the minimum required value.
1414
* Leave a higher value in place. When building with at least Visual
1515
* Studio 2015 the minimum requirement is Windows Vista (0x0600) to
16-
* get support for GetLocaleInfoEx() with locales. Foreverything else
16+
* get support for GetLocaleInfoEx() with locales. Forother MSC versions
1717
* the minimum version is Windows XP (0x0501).
18+
* For non-MSC compilers use 0x0600, which is required to get the inet_pton()
19+
* declaration.
1820
*/
19-
#if defined(_MSC_VER)&&_MSC_VER >=1900
21+
#if!defined(_MSC_VER)||_MSC_VER >=1900
2022
#defineMIN_WINNT 0x0600
2123
#else
2224
#defineMIN_WINNT 0x0501

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp