[gtk/wip/hadess/window-present-docs: 1/5] Add 4.0 deprecation warning macros



commit df6494d73ab9751fc026c8de9d4453e92fc70901
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 25 17:31:14 2019 +0100

    Add 4.0 deprecation warning macros
    
    Note that functions deprecated in 4.0 will cause deprecation warnings
    even with the pre-4.0 GTK development versions.

 gdk/gdkversionmacros.h.in | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in
index 5b413f1704..8565011197 100644
--- a/gdk/gdkversionmacros.h.in
+++ b/gdk/gdkversionmacros.h.in
@@ -54,6 +54,7 @@
 
 #define GDK_VERSION_3_92        (G_ENCODE_VERSION (3, 92))
 #define GDK_VERSION_3_94        (G_ENCODE_VERSION (3, 94))
+
 /**
  * GDK_VERSION_4_0:
  *
@@ -137,6 +138,13 @@
 # define GDK_AVAILABLE_IN_4_0                _GDK_EXTERN
 #endif
 
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_92
+# define GDK_DEPRECATED_IN_4_0                GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_4_0_FOR(f)         GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_4_0                _GDK_EXTERN
+# define GDK_DEPRECATED_IN_4_0_FOR(f)         _GDK_EXTERN
+#endif
 
 #endif  /* __GDK_VERSION_MACROS_H__ */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]