summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_import.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-18 22:48:09 (GMT)
committerGitHub <noreply@github.com>2019-06-18 22:48:09 (GMT)
commit01b63ecac66581f80ba953d9182751e591c2b2ba (patch)
treef1e60d0921953e0c19f7f84f1cbd0e43536deea3 /Include/internal/pycore_import.h
parent54cf2e0780ca137dd9abea5d3d974578ce0c18a9 (diff)
downloadcpython-01b63ecac66581f80ba953d9182751e591c2b2ba.zip
cpython-01b63ecac66581f80ba953d9182751e591c2b2ba.tar.gz
cpython-01b63ecac66581f80ba953d9182751e591c2b2ba.tar.bz2
bpo-35134: Add Include/cpython/import.h header file (GH-14213)
* Add Include/cpython/import.h and Include/internal/pycore_import.h header files. * Move _PyImport_ReInitLock() to the internal C API. Don't export the symbol anymore.
Diffstat (limited to 'Include/internal/pycore_import.h')
-rw-r--r--Include/internal/pycore_import.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Include/internal/pycore_import.h b/Include/internal/pycore_import.h
new file mode 100644
index 0000000..6b72824
--- /dev/null
+++ b/Include/internal/pycore_import.h
@@ -0,0 +1,14 @@
+#ifndef Py_LIMITED_API
+#ifndef Py_INTERNAL_IMPORT_H
+#define Py_INTERNAL_IMPORT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern void _PyImport_ReInitLock(void);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_INTERNAL_IMPORT_H */
+#endif /* !Py_LIMITED_API */