shared: Improve disabling of deprecations warnings

Have a separate compile option to disable them like GLib does.
This way we can define it across libs and apps to have them all be quiet.

This is done to avoid messages about legacy features that are left
for compatibility or fallback purposes.
This commit is contained in:
Rafał Dzięgiel
2025-12-06 18:27:14 +01:00
parent cffe64840d
commit 6936473a7b

View File

@@ -41,7 +41,7 @@
#define @CLAPPER_API@_API _@CLAPPER_API@_VISIBILITY
#if !defined(@CLAPPER_API@_COMPILATION)
#if !defined(CLAPPER_DISABLE_DEPRECATION_WARNINGS)
#define @CLAPPER_API@_DEPRECATED G_DEPRECATED _@CLAPPER_API@_VISIBILITY
#define @CLAPPER_API@_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _@CLAPPER_API@_VISIBILITY
#else