Make single includes mandatory

This has been the official line since 2.17, which seems plenty
long enough for a transition phase.
This commit is contained in:
Matthias Clasen
2011-10-12 00:24:46 -04:00
parent 9bb5a55bda
commit 7455dd370e
63 changed files with 65 additions and 68 deletions

View File

@@ -104,12 +104,8 @@ the <link linkend="glib-I18N">Internationalization section</link>),
</para>
<para>
Starting with 2.17, GLib enforces 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 <emphasis>is</emphasis> turned on for GObject and GIO).
To turn it on, define the preprocessor symbol G_DISABLE_SINGLE_INCLUDES
by using the command line option <literal>-DG_DISABLE_SINGLE_INCLUDES</literal>.
Starting with 2.32, GLib enforces this by generating an error
when individual headers are directly included.
</para>
</refsect1>