diff options
-rw-r--r-- | Misc/NEWS.d/next/Windows/2019-05-20-20-26-36.bpo-36965.KsfI-N.rst | 1 | ||||
-rw-r--r-- | Modules/main.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Misc/NEWS.d/next/Windows/2019-05-20-20-26-36.bpo-36965.KsfI-N.rst b/Misc/NEWS.d/next/Windows/2019-05-20-20-26-36.bpo-36965.KsfI-N.rst new file mode 100644 index 0000000..2a531d2 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2019-05-20-20-26-36.bpo-36965.KsfI-N.rst @@ -0,0 +1 @@ +include of STATUS_CONTROL_C_EXIT without depending on MSC compiler diff --git a/Modules/main.c b/Modules/main.c index 6d4b351..08fb0e0 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -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() */ |