Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
09eb6fe8
Kaydet (Commit)
09eb6fe8
authored
May 18, 2018
tarafından
Miss Islington (bot)
Kaydeden (comit)
Berker Peksag
May 18, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32282: Remove unnecessary check for `VersionHelpers.h` in `socketmodule.c` on Windows (GH-5120)
(cherry picked from commit
af11a15c
)
üst
e6e440ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
2017-12-12-14-02-28.bpo-32282.xFVMTn.rst
...ore and Builtins/2017-12-12-14-02-28.bpo-32282.xFVMTn.rst
+2
-0
socketmodule.c
Modules/socketmodule.c
+0
-10
No files found.
Misc/NEWS.d/next/Core and Builtins/2017-12-12-14-02-28.bpo-32282.xFVMTn.rst
0 → 100644
Dosyayı görüntüle @
09eb6fe8
Fix an unnecessary ifdef in the include of VersionHelpers.h in socketmodule
on Windows.
Modules/socketmodule.c
Dosyayı görüntüle @
09eb6fe8
...
...
@@ -312,10 +312,8 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
# include <fcntl.h>
# endif
#if defined(_MSC_VER) && _MSC_VER >= 1800
/* Provides the IsWindows7SP1OrGreater() function */
#include <VersionHelpers.h>
#endif
/* remove some flags on older version Windows during run-time.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738596.aspx */
...
...
@@ -6571,15 +6569,7 @@ PyInit__socket(void)
#ifdef MS_WINDOWS
if
(
support_wsa_no_inherit
==
-
1
)
{
#if defined(_MSC_VER) && _MSC_VER >= 1800
support_wsa_no_inherit
=
IsWindows7SP1OrGreater
();
#else
DWORD
version
=
GetVersion
();
DWORD
major
=
(
DWORD
)
LOBYTE
(
LOWORD
(
version
));
DWORD
minor
=
(
DWORD
)
HIBYTE
(
LOWORD
(
version
));
/* need Windows 7 SP1, 2008 R2 SP1 or later */
support_wsa_no_inherit
=
major
>
6
||
(
major
==
6
&&
minor
>=
1
);
#endif
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment