From 8aa6abbd6c650b3b08c95961808ea8a38b537240 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 27 May 2008 16:46:43 +0000 Subject: [PATCH] Additions svn path=/trunk/; revision=6945 --- docs/reference/ChangeLog | 4 ++++ docs/reference/glib/compiling.sgml | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index e904be0a3..d11e68bcb 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2008-05-27 Matthias Clasen + + * glib/compiling.sgml: Document G_DISABLE_SINGLE_INCLUDES + 2008-05-27 Michael Natterer * glib/tmpl/gurifuncs.sgml diff --git a/docs/reference/glib/compiling.sgml b/docs/reference/glib/compiling.sgml index 9459b60db..bcbf62cd3 100644 --- a/docs/reference/glib/compiling.sgml +++ b/docs/reference/glib/compiling.sgml @@ -67,6 +67,18 @@ functions, you can define the preprocessor symbol G_DISABLE_DEPRECATED by using the command line option -DG_DISABLE_DEPRECATED=1. + +The recommended way of using GLib has always been to only include the +toplevel headers glib.h, +glib-object.h, gio.h. +Starting with 2.17, GLib enforces this this by generating an error +when individual headers are directly included. To help with the +transition, the enforcement is not turned on by default for GLib +headers (it is turned on for GObject and GIO). +To turn it on, define the preprocessor symbol G_DISABLE_SINGLE_INCLUDES +by using the command line option -DG_DISABLE_SINGLE_INCLUDES. + +