diff --git a/inc/rlottie.h b/inc/rlottie.h index 12c413bf..138db662 100644 --- a/inc/rlottie.h +++ b/inc/rlottie.h @@ -27,7 +27,9 @@ #include #include -#if defined _WIN32 || defined __CYGWIN__ +#ifdef RLOTTIE_API +// do nothing +#elif defined _WIN32 || defined __CYGWIN__ #ifdef RLOTTIE_BUILD #define RLOTTIE_API __declspec(dllexport) #else diff --git a/inc/rlottiecommon.h b/inc/rlottiecommon.h index 784fbe28..cd87d77e 100644 --- a/inc/rlottiecommon.h +++ b/inc/rlottiecommon.h @@ -23,7 +23,9 @@ #ifndef _RLOTTIE_COMMON_H_ #define _RLOTTIE_COMMON_H_ -#if defined _WIN32 || defined __CYGWIN__ +#ifdef RLOTTIE_API +// do nothing +#elif defined _WIN32 || defined __CYGWIN__ #ifdef RLOTTIE_BUILD #define RLOTTIE_API __declspec(dllexport) #else diff --git a/src/vector/stb/stb_image.cpp b/src/vector/stb/stb_image.cpp index 2c4933e8..513bc4aa 100644 --- a/src/vector/stb/stb_image.cpp +++ b/src/vector/stb/stb_image.cpp @@ -13,7 +13,9 @@ #include "stb_image.h" -#if defined _WIN32 || defined __CYGWIN__ +#ifdef RLOTTIE_API +// do nothing +#elif defined _WIN32 || defined __CYGWIN__ #ifdef RLOTTIE_BUILD #define RLOTTIE_API __declspec(dllexport) #else