From 1c8d15abac1a9d269c335be7eaab4a8bc23aaf09 Mon Sep 17 00:00:00 2001 From: daanx Date: Wed, 11 Dec 2024 14:30:44 -0800 Subject: [PATCH] fix build error --- include/mimalloc/internal.h | 14 -------------- include/mimalloc/types.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/mimalloc/internal.h b/include/mimalloc/internal.h index 4b211d71..fb359763 100644 --- a/include/mimalloc/internal.h +++ b/include/mimalloc/internal.h @@ -239,20 +239,6 @@ bool _mi_page_is_valid(mi_page_t* page); #endif -// ------------------------------------------------------ -// Debug -// ------------------------------------------------------ - -#if !defined(MI_DEBUG_UNINIT) -#define MI_DEBUG_UNINIT (0xD0) -#endif -#if !defined(MI_DEBUG_FREED) -#define MI_DEBUG_FREED (0xDF) -#endif -#if !defined(MI_DEBUG_PADDING) -#define MI_DEBUG_PADDING (0xDE) -#endif - /* ----------------------------------------------------------- Assertions ----------------------------------------------------------- */ diff --git a/include/mimalloc/types.h b/include/mimalloc/types.h index 03d522b5..77752398 100644 --- a/include/mimalloc/types.h +++ b/include/mimalloc/types.h @@ -562,5 +562,19 @@ struct mi_tld_s { #define EOVERFLOW (75) #endif +// ------------------------------------------------------ +// Debug +// ------------------------------------------------------ + +#ifndef MI_DEBUG_UNINIT +#define MI_DEBUG_UNINIT (0xD0) +#endif +#ifndef MI_DEBUG_FREED +#define MI_DEBUG_FREED (0xDF) +#endif +#ifndef MI_DEBUG_PADDING +#define MI_DEBUG_PADDING (0xDE) +#endif + #endif // MI_TYPES_H