File tree Expand file tree Collapse file tree 6 files changed +16
-6
lines changed Expand file tree Collapse file tree 6 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 3131#define Py_HAVE_CONDVAR
3232
3333/* include windows if it hasn't been done before */
34- #define WIN32_LEAN_AND_MEAN
34+ #ifndef WIN32_LEAN_AND_MEAN
35+ # define WIN32_LEAN_AND_MEAN
36+ #endif
3537#include <windows.h> // CRITICAL_SECTION
3638
3739/* options */
Original file line number Diff line number Diff line change 1010#include "pycore_pythread.h" // _POSIX_SEMAPHORES
1111
1212#ifdef MS_WINDOWS
13- # define WIN32_LEAN_AND_MEAN
13+ # ifndef WIN32_LEAN_AND_MEAN
14+ # define WIN32_LEAN_AND_MEAN
15+ # endif
1416# include <windows.h>
1517#elif defined(HAVE_PTHREAD_H )
1618# include <pthread.h>
Original file line number Diff line number Diff line change 1111#include "pycore_pystate.h" // _PyInterpreterState_GetIDObject()
1212
1313#ifdef MS_WINDOWS
14- #define WIN32_LEAN_AND_MEAN
14+ #ifndef WIN32_LEAN_AND_MEAN
15+ # define WIN32_LEAN_AND_MEAN
16+ #endif
1517#include <windows.h> // SwitchToThread()
1618#elif defined(HAVE_SCHED_H )
1719#include <sched.h> // sched_yield()
Original file line number Diff line number Diff line change 2323#include <stddef.h> /* For offsetof */
2424
2525#ifndef WIN32_LEAN_AND_MEAN
26- #define WIN32_LEAN_AND_MEAN
26+ # define WIN32_LEAN_AND_MEAN
2727#endif
2828#include <windows.h>
2929#include <fcntl.h>
Original file line number Diff line number Diff line change 88#include "pycore_time.h" // _PyTime_Add()
99
1010#ifdef MS_WINDOWS
11- # define WIN32_LEAN_AND_MEAN
11+ # ifndef WIN32_LEAN_AND_MEAN
12+ # define WIN32_LEAN_AND_MEAN
13+ # endif
1214# include <windows.h> // SwitchToThread()
1315#elif defined(HAVE_SCHED_H )
1416# include <sched.h> // sched_yield()
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ Data members:
4545#endif
4646
4747#ifdef MS_WINDOWS
48- # define WIN32_LEAN_AND_MEAN
48+ # ifndef WIN32_LEAN_AND_MEAN
49+ # define WIN32_LEAN_AND_MEAN
50+ # endif
4951# include <windows.h>
5052#endif /* MS_WINDOWS */
5153
You can’t perform that action at this time.
0 commit comments