summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorErik Janssens <erik.janssens@conceptive.be>2019-05-22 13:04:06 +0200
committerVictor Stinner <vstinner@redhat.com>2019-05-22 13:04:06 +0200
commit791e5fcbab9e444b62d13d08707cbbbeb9406297 (patch)
tree30ee522610cff5506c292391abc43d32bdad50b6 /Modules
parentaea49b18752880e5d0260f16ca7ff2c6dce78515 (diff)
downloadcpython-git-791e5fcbab9e444b62d13d08707cbbbeb9406297.tar.gz
bpo-36965: Fix includes in main.c on Windows with non-MSC compilers (GH-13421) (GH-13471)
Include windows.h rather than crtdbg.h to get STATUS_CONTROL_C_EXIT constant. Moreover, include windows.h on Windows, not only when MSC is used. (cherry picked from commit 925af1d99b69bf3e229411022ad840c5a0cfdcf8)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/main.c b/Modules/main.c
index e3683b9417..acc59c6c40 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -18,8 +18,8 @@
# endif
#endif
-#ifdef _MSC_VER
-# include <crtdbg.h>
+#ifdef MS_WINDOWS
+# include <windows.h> /* STATUS_CONTROL_C_EXIT */
#endif
#ifdef __FreeBSD__