gh-122584: Import mimalloc headers in a C++ context (#122587)

This commit is contained in:
Michael Droettboom 2024-08-15 09:01:01 -04:00 committed by GitHub
parent 3203a74129
commit 1dad23edbc
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