diff options
Diffstat (limited to 'src/uscxml/Common.h')
-rw-r--r-- | src/uscxml/Common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uscxml/Common.h b/src/uscxml/Common.h index abe4921..7d254be 100644 --- a/src/uscxml/Common.h +++ b/src/uscxml/Common.h @@ -26,7 +26,9 @@ #define ELPP_STACKTRACE_ON_CRASH 1 #endif -#if __cplusplus >= 201402L +#if defined(SWIGIMPORTED) || defined(SWIG) +#define DEPRECATED +#elif __cplusplus >= 201402L #define DEPRECATED [[deprecated]] #elif defined(__GNUC__) #define DEPRECATED __attribute__((deprecated)) @@ -37,6 +39,7 @@ #define DEPRECATED(alternative) #endif + #if defined(_WIN32) && !defined(USCXML_STATIC) # ifdef USCXML_EXPORT # define USCXML_API __declspec(dllexport) |