mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
[3.13] gh-131082: Add missing guards for WIN32_LEAN_AND_MEAN (GH-131044) (#131084)
(cherry picked from commit de8818ae23
)
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
This commit is contained in:
parent
27fd328cf6
commit
f9d19a3ada
6 changed files with 16 additions and 6 deletions
|
@ -8,7 +8,9 @@
|
|||
#include "pycore_time.h" // _PyTime_Add()
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <windows.h> // SwitchToThread()
|
||||
#elif defined(HAVE_SCHED_H)
|
||||
# include <sched.h> // sched_yield()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue