Commit 925af1d9 authored by Erik Janssens's avatar Erik Janssens Committed by Victor Stinner

bpo-36965: Fix includes in main.c on Windows with non-MSC compilers (GH-13421)

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.
parent e7cb23bf
include of STATUS_CONTROL_C_EXIT without depending on MSC compiler
......@@ -18,8 +18,8 @@
#if defined(HAVE_GETPID) && defined(HAVE_UNISTD_H)
# include <unistd.h> /* getpid() */
#endif
#ifdef _MSC_VER
# include <crtdbg.h> /* STATUS_CONTROL_C_EXIT */
#ifdef MS_WINDOWS
# include <windows.h> /* STATUS_CONTROL_C_EXIT */
#endif
/* End of includes for exit_sigint() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment