[glib] Make G_DISABLE_DEPRECATED work again for wholly deprecated headers



commit d632713a7716db10eca4524e7438cbc52f0ea230
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 3 01:11:02 2013 -0500

    Make G_DISABLE_DEPRECATED work again for wholly deprecated headers
    
    Patch by Milan Crha,
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688169

 glib/glib.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/glib.h b/glib/glib.h
index 77abf23..ce7447e 100644
--- a/glib/glib.h
+++ b/glib/glib.h
@@ -100,12 +100,14 @@
 #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__
 



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