[3.13] gh-122584: Import mimalloc headers in a C++ context (GH-122587) (#123035)

gh-122584: Import mimalloc headers in a C++ context (GH-122587)
(cherry picked from commit 1dad23edbc)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-08-16 10:49:17 +02:00 committed by GitHub
parent cf6d14b966
commit 7ee7558833
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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