mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 06:13:29 +02:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user