File tree 6 files changed +16
-6
lines changed
6 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 31
31
#define Py_HAVE_CONDVAR
32
32
33
33
/* 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
35
37
#include <windows.h> // CRITICAL_SECTION
36
38
37
39
/* options */
Original file line number Diff line number Diff line change 10
10
#include "pycore_pythread.h" // _POSIX_SEMAPHORES
11
11
12
12
#ifdef MS_WINDOWS
13
- # define WIN32_LEAN_AND_MEAN
13
+ # ifndef WIN32_LEAN_AND_MEAN
14
+ # define WIN32_LEAN_AND_MEAN
15
+ # endif
14
16
# include <windows.h>
15
17
#elif defined(HAVE_PTHREAD_H )
16
18
# include <pthread.h>
Original file line number Diff line number Diff line change 11
11
#include "pycore_pystate.h" // _PyInterpreterState_GetIDObject()
12
12
13
13
#ifdef MS_WINDOWS
14
- #define WIN32_LEAN_AND_MEAN
14
+ #ifndef WIN32_LEAN_AND_MEAN
15
+ # define WIN32_LEAN_AND_MEAN
16
+ #endif
15
17
#include <windows.h> // SwitchToThread()
16
18
#elif defined(HAVE_SCHED_H )
17
19
#include <sched.h> // sched_yield()
Original file line number Diff line number Diff line change 23
23
#include <stddef.h> /* For offsetof */
24
24
25
25
#ifndef WIN32_LEAN_AND_MEAN
26
- #define WIN32_LEAN_AND_MEAN
26
+ # define WIN32_LEAN_AND_MEAN
27
27
#endif
28
28
#include <windows.h>
29
29
#include <fcntl.h>
Original file line number Diff line number Diff line change 8
8
#include "pycore_time.h" // _PyTime_Add()
9
9
10
10
#ifdef MS_WINDOWS
11
- # define WIN32_LEAN_AND_MEAN
11
+ # ifndef WIN32_LEAN_AND_MEAN
12
+ # define WIN32_LEAN_AND_MEAN
13
+ # endif
12
14
# include <windows.h> // SwitchToThread()
13
15
#elif defined(HAVE_SCHED_H )
14
16
# include <sched.h> // sched_yield()
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ Data members:
45
45
#endif
46
46
47
47
#ifdef MS_WINDOWS
48
- # define WIN32_LEAN_AND_MEAN
48
+ # ifndef WIN32_LEAN_AND_MEAN
49
+ # define WIN32_LEAN_AND_MEAN
50
+ # endif
49
51
# include <windows.h>
50
52
#endif /* MS_WINDOWS */
51
53
You can’t perform that action at this time.
0 commit comments