mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
shared: Do not print deprecations when compiling own code
We keep and use old functions in code for the compatibility reasons with older API versions. Do not print warnings about them being deprecated when compiling Clapper library that has and uses such function internally.
This commit is contained 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
|
||||
|
Reference in New Issue
Block a user