summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Include/internal/pycore_signal.h9
-rw-r--r--Include/intrcheck.h11
2 files changed, 11 insertions, 9 deletions
diff --git a/Include/internal/pycore_signal.h b/Include/internal/pycore_signal.h
index 8f87675..b38b1d3 100644
--- a/Include/internal/pycore_signal.h
+++ b/Include/internal/pycore_signal.h
@@ -95,6 +95,15 @@ struct _signals_runtime_state {
}
+// Export for '_multiprocessing' shared extension
+PyAPI_FUNC(int) _PyOS_IsMainThread(void);
+
+#ifdef MS_WINDOWS
+// <windows.h> is not included by Python.h so use void* instead of HANDLE.
+// Export for '_multiprocessing' shared extension
+PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
+#endif
+
#ifdef __cplusplus
}
#endif
diff --git a/Include/intrcheck.h b/Include/intrcheck.h
index b8cc656..1d1feee 100644
--- a/Include/intrcheck.h
+++ b/Include/intrcheck.h
@@ -5,6 +5,7 @@ extern "C" {
#endif
PyAPI_FUNC(int) PyOS_InterruptOccurred(void);
+
#ifdef HAVE_FORK
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
PyAPI_FUNC(void) PyOS_BeforeFork(void);
@@ -12,18 +13,10 @@ PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
#endif
#endif
+
/* Deprecated, please use PyOS_AfterFork_Child() instead */
Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyOS_AfterFork(void);
-#ifndef Py_LIMITED_API
-PyAPI_FUNC(int) _PyOS_IsMainThread(void);
-
-#ifdef MS_WINDOWS
-/* windows.h is not included by Python.h so use void* instead of HANDLE */
-PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
-#endif
-#endif /* !Py_LIMITED_API */
-
#ifdef __cplusplus
}
#endif