File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 37
37
#define Py_HAVE_CONDVAR
38
38
39
39
/* include windows if it hasn't been done before */
40
- #define WIN32_LEAN_AND_MEAN
41
- #include <windows.h>
40
+ #ifndef WIN32_LEAN_AND_MEAN
41
+ # define WIN32_LEAN_AND_MEAN
42
+ #endif
43
+ #include <windows.h> // CRITICAL_SECTION
42
44
43
45
/* options */
44
46
/* non-emulated condition variables are provided for those that want
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 @@ -39,8 +39,10 @@ Data members:
39
39
#include <locale.h>
40
40
41
41
#ifdef MS_WINDOWS
42
- #define WIN32_LEAN_AND_MEAN
43
- #include <windows.h>
42
+ # ifndef WIN32_LEAN_AND_MEAN
43
+ # define WIN32_LEAN_AND_MEAN
44
+ # endif
45
+ # include <windows.h>
44
46
#endif /* MS_WINDOWS */
45
47
46
48
#ifdef MS_COREDLL
You can’t perform that action at this time.
0 commit comments