Make G_DISABLE_DEPRECATED work again for wholly deprecated headers
authorMatthias Clasen <mclasen@redhat.com>
Sun, 3 Feb 2013 06:11:02 +0000 (01:11 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Feb 2013 06:11:02 +0000 (01:11 -0500)
Patch by Milan Crha,

https://bugzilla.gnome.org/show_bug.cgi?id=688169

glib/glib.h

index 77abf23..ce7447e 100644 (file)
 #include <glib/gwin32.h>
 #endif
 
+#ifndef G_DISABLE_DEPRECATED
 #include <glib/deprecated/gallocator.h>
 #include <glib/deprecated/gcache.h>
 #include <glib/deprecated/gcompletion.h>
 #include <glib/deprecated/gmain.h>
 #include <glib/deprecated/grel.h>
 #include <glib/deprecated/gthread.h>
+#endif /* G_DISABLE_DEPRECATED */
 
 #undef __GLIB_H_INSIDE__