summaryrefslogtreecommitdiffstats
path: root/PC/winsound.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/winsound.c')
-rw-r--r--PC/winsound.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/winsound.c b/PC/winsound.c
index ae36936..36e4d07 100644
--- a/PC/winsound.c
+++ b/PC/winsound.c
@@ -35,8 +35,10 @@
winsound.PlaySound(None, 0)
*/
+#ifndef Py_NOGIL
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030d0000
+#endif
#include <Python.h>
#include <windows.h>