diff --git a/src/lib/shared/clapper-api-visibility.h.in b/src/lib/shared/clapper-api-visibility.h.in index 4a02dde5..60a5314b 100644 --- a/src/lib/shared/clapper-api-visibility.h.in +++ b/src/lib/shared/clapper-api-visibility.h.in @@ -41,5 +41,11 @@ #endif #define @CLAPPER_API@_API _@CLAPPER_API@_VISIBILITY + +#if !defined(@CLAPPER_API@_COMPILATION) #define @CLAPPER_API@_DEPRECATED G_DEPRECATED _@CLAPPER_API@_VISIBILITY #define @CLAPPER_API@_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _@CLAPPER_API@_VISIBILITY +#else +#define @CLAPPER_API@_DEPRECATED _@CLAPPER_API@_VISIBILITY +#define @CLAPPER_API@_DEPRECATED_FOR(f) _@CLAPPER_API@_VISIBILITY +#endif