mirror of https://github.com/python/cpython
gh-122584: Import mimalloc headers in a C++ context (#122587)
This commit is contained in:
parent
3203a74129
commit
1dad23edbc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue