8000 Include the headers conditionally. · python/cpython@e3c4b93 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3c4b93

Browse files
Include the headers conditionally.
1 parent fd6ad47 commit e3c4b93

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Include/internal/pycore_signal.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ extern "C" {
1313
#include "pycore_atomic.h" // _Py_atomic_address
1414

1515
#ifdef MS_WINDOWS
16-
# include <winsock2.h> // SOCKET
17-
# include <windows.h> // HANDLE
16+
# ifndef SOCKET
17+
# include <winsock2.h> // SOCKET
18+
# endif
19+
# ifndef HANDLE
20+
# include <windows.h> // HANDLE
21+
# endif
1822
#endif
1923
#include <signal.h> // NSIG
2024

0 commit comments

Comments
 (0)
0