File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Misc/NEWS.d/next/Core and Builtins Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change
1
+ Fix an unnecessary ifdef in the include of VersionHelpers.h in socketmodule
2
+ on Windows.
Original file line number Diff line number Diff line change @@ -297,10 +297,8 @@ if_indextoname(index) -- return the corresponding interface name\n\
297
297
# include <fcntl.h>
298
298
# endif
299
299
300
- #if defined(_MSC_VER ) && _MSC_VER >= 1800
301
300
/* Provides the IsWindows7SP1OrGreater() function */
302
301
#include <VersionHelpers.h>
303
- #endif
304
302
305
303
#endif
306
304
@@ -6552,15 +6550,7 @@ PyInit__socket(void)
6552
6550
6553
6551
#ifdef MS_WINDOWS
6554
6552
if (support_wsa_no_inherit == -1 ) {
6555
- #if defined(_MSC_VER ) && _MSC_VER >= 1800
6556
6553
support_wsa_no_inherit = IsWindows7SP1OrGreater ();
6557
- #else
6558
- DWORD version = GetVersion ();
6559
- DWORD major = (DWORD )LOBYTE (LOWORD (version ));
6560
- DWORD minor = (DWORD )HIBYTE (LOWORD (version ));
6561
- /* need Windows 7 SP1, 2008 R2 SP1 or later */
6562
- support_wsa_no_inherit = major > 6 || (major == 6 && minor >= 1 );
6563
- #endif
6564
6554
}
6565
6555
#endif
6566
6556
You can’t perform that action at this time.
0 commit comments