https://github.com/python/cpython/commit/1dad23edbc9db3a13268c1000c8dd428edba29f8
commit: 1dad23edbc9db3a13268c1000c8dd428edba29f8
branch: main
author: Michael Droettboom <[email protected]>
committer: mdboom <[email protected]>
date: 2024-08-15T09:01:01-04:00
summary:
gh-122584: Import mimalloc headers in a C++ context (#122587)
files:
M Include/internal/pycore_mimalloc.h
diff --git a/Include/internal/pycore_mimalloc.h
b/Include/internal/pycore_mimalloc.h
index d10b01d5b49b19..d870d01beb702c 100644
--- a/Include/internal/pycore_mimalloc.h
+++ b/Include/internal/pycore_mimalloc.h
@@ -36,9 +36,18 @@ typedef enum {
# define MI_TSAN 1
#endif
+#ifdef __cplusplus
+extern "C++" {
+#endif
+
#include "mimalloc/mimalloc.h"
#include "mimalloc/mimalloc/types.h"
#include "mimalloc/mimalloc/internal.h"
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifdef Py_GIL_DISABLED
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]