From 50bfacdb71503181e58a2e3ca3f1db14eb390632 Mon Sep 17 00:00:00 2001 From: daan Date: Mon, 6 Apr 2020 09:53:29 -0700 Subject: [PATCH] fix mingw compilation by using export definitions (issue #217) --- include/mimalloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mimalloc.h b/include/mimalloc.h index 85f25ffb..e6f68b66 100644 --- a/include/mimalloc.h +++ b/include/mimalloc.h @@ -34,7 +34,7 @@ terms of the MIT license. A copy of the license can be found in the file #define mi_decl_nodiscard #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) #if !defined(MI_SHARED_LIB) #define mi_decl_export #elif defined(MI_SHARED_LIB_EXPORT)