From aa0a195e9845b7930766abae1e825a4a4da58402 Mon Sep 17 00:00:00 2001 From: Randy Date: Mon, 3 Aug 2020 19:34:45 +0200 Subject: [PATCH] win32: fix symbol exports --- include/cglm/common.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/cglm/common.h b/include/cglm/common.h index 749fb5d..68530d8 100644 --- a/include/cglm/common.h +++ b/include/cglm/common.h @@ -23,10 +23,12 @@ #include #if defined(_MSC_VER) -# ifdef CGLM_DLL +# if defined(CGLM_DLL) && defined(CGLM_EXPORTS) # define CGLM_EXPORT __declspec(dllexport) -# else +# elif defined(CGLM_DLL) # define CGLM_EXPORT __declspec(dllimport) +# else +# define CGLM_EXPORT # endif # define CGLM_INLINE __forceinline #else