Bug 556186 – gpoll.h breaks gmain.h inclusion
authorMichael Natterer <mitch@imendio.com>
Sun, 19 Oct 2008 20:38:14 +0000 (20:38 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Sun, 19 Oct 2008 20:38:14 +0000 (20:38 +0000)
2008-10-19  Michael Natterer  <mitch@imendio.com>

Bug 556186 – gpoll.h breaks gmain.h inclusion

* glib/gpoll.h: different fix: disallow direct inclusion
unconditionally again but make an exception if included from
gmain.h to maintain compatibility.

svn path=/trunk/; revision=7615

ChangeLog
glib/gpoll.h

index 4b0d8d8..bcd9fcf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-19  Michael Natterer  <mitch@imendio.com>
+
+       Bug 556186 – gpoll.h breaks gmain.h inclusion
+
+       * glib/gpoll.h: different fix: disallow direct inclusion
+       unconditionally again but make an exception if included from
+       gmain.h to maintain compatibility.
+
 2008-10-16  Matthias Clasen <mclasen@redhat.com>
 
        * configure.in: Bump version to 2.19.1
index aa62ac1..60b1857 100644 (file)
@@ -17,7 +17,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
-#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
+#if !defined (__GLIB_H_INSIDE__) && !defined (__G_MAIN_H__) && !defined (GLIB_COMPILATION)
 #error "Only <glib.h> can be included directly."
 #endif