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)