From e088df5681aad20241cab5e58d9859bbf52731a8 Mon Sep 17 00:00:00 2001 From: mingkuang Date: Mon, 21 Sep 2020 21:16:01 +0800 Subject: [PATCH] add Allow user define RLOTTIE_API macros. --- inc/rlottie.h | 4 +++- inc/rlottiecommon.h | 4 +++- src/vector/stb/stb_image.cpp | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) 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