From: Michael Droettboom Date: Thu, 15 Aug 2024 13:01:01 +0000 (-0400) Subject: gh-122584: Import mimalloc headers in a C++ context (#122587) X-Git-Tag: v3.14.0a1~772 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dad23edbc9db3a13268c1000c8dd428edba29f8;p=thirdparty%2FPython%2Fcpython.git gh-122584: Import mimalloc headers in a C++ context (#122587) --- diff --git a/Include/internal/pycore_mimalloc.h b/Include/internal/pycore_mimalloc.h index d10b01d5b49b..d870d01beb70 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