mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-131082: Add missing guards for WIN32_LEAN_AND_MEAN (#131044)
* Add missing guards for WIN32_LEAN_AND_MEAN * add missing whitespaces
This commit is contained in:
parent
425e0af74f
commit
de8818ae23
6 changed files with 16 additions and 6 deletions
|
@ -10,7 +10,9 @@
|
|||
#include "pycore_pythread.h" // _POSIX_SEMAPHORES
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <windows.h>
|
||||
#elif defined(HAVE_PTHREAD_H)
|
||||
# include <pthread.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue