mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-122584: Import mimalloc headers in a C++ context (#122587)
This commit is contained in:
parent
3203a74129
commit
1dad23edbc
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue