]> Pileus Git - ~andy/gtk/commitdiff
Update gdk/gdkconfig.h.win32
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 30 Dec 2011 08:21:38 +0000 (16:21 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 30 Dec 2011 08:21:38 +0000 (16:21 +0800)
Apparently the deprecation warning macros are placed into gdkconfig.h
during the configure stage, so put these in the pre-configured
gdkconfig.h.win32 as well, as their definitions are needed for all builds.

gdk/gdkconfig.h.win32

index c941eb86a004e77f80bdd38e75d3f32c531b00ec..13022e88eca97646f57856d4eadeb4a158bc84f3 100644 (file)
 
 G_BEGIN_DECLS
 
+/* These macros are used to mark deprecated functions in GDK and
+ * GTK+ headers, and thus have to be exposed in installed headers.
+ * But please do *not* use them in other projects. Instead, use
+ * G_DEPRECATED or define your own wrappers around it.
+ */
+
+#ifdef GDK_DISABLE_DEPRECATION_WARNINGS
+#define GDK_DEPRECATED
+#define GDK_DEPRECATED_FOR(f)
+#else
+#define GDK_DEPRECATED G_DEPRECATED
+#define GDK_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f)
+#endif
 
 #define GDK_WINDOWING_WIN32