diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-12-30 16:21:38 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-12-30 16:21:38 +0800 |
commit | bdb98fdfcc9fa85c6bbd46d5f891c6e6587f5b09 (patch) | |
tree | 2abebe062b0746c2fc81849821af1e1f2f03042a /gdk/gdkconfig.h.win32 | |
parent | 2637240abe5ac158735c700a876a2199602e0d0f (diff) | |
download | gtk+-bdb98fdfcc9fa85c6bbd46d5f891c6e6587f5b09.tar.gz |
Update gdk/gdkconfig.h.win32
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.
Diffstat (limited to 'gdk/gdkconfig.h.win32')
-rw-r--r-- | gdk/gdkconfig.h.win32 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdk/gdkconfig.h.win32 b/gdk/gdkconfig.h.win32 index c941eb86a0..13022e88ec 100644 --- a/gdk/gdkconfig.h.win32 +++ b/gdk/gdkconfig.h.win32 @@ -14,6 +14,19 @@ 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 |