diff --git a/stb_rect_pack.h b/stb_rect_pack.h index 6a633ce66..8f9e3a316 100644 --- a/stb_rect_pack.h +++ b/stb_rect_pack.h @@ -71,8 +71,12 @@ #ifdef STBRP_STATIC #define STBRP_DEF static #else +#ifdef _MSC_VER +#define STBRP_DEF extern __declspec(dllexport) +#else #define STBRP_DEF extern #endif +#endif #ifdef __cplusplus extern "C" {