diff options
author | Michael Natterer <mitch@imendio.com> | 2008-03-14 19:30:38 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2008-03-14 19:30:38 +0000 |
commit | f4bb21aa1d405fd11043a03e0962358eb0f42a5e (patch) | |
tree | 5a61a68360791fb866dbd37544bc1e058793987a /glib/gkeyfile.h | |
parent | 51d7fc9e965c64da40597d007756d330b5e3cc5f (diff) | |
download | glib-f4bb21aa1d405fd11043a03e0962358eb0f42a5e.tar.gz |
make it possible to disable single-file includes by defining
2008-03-14 Michael Natterer <mitch@imendio.com>
* glib/*.h: make it possible to disable single-file includes by
defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
Approved by Tim Janik.
* glib/glib.h: include <glib/gslice.h>.
* glib/gi18n.h
* glib/gi18n-lib.h
* glib/gprintf.h: include <glib.h> so the above works when these
files are included without including <glib.h> first.
svn path=/trunk/; revision=6713
Diffstat (limited to 'glib/gkeyfile.h')
-rw-r--r-- | glib/gkeyfile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/gkeyfile.h b/glib/gkeyfile.h index e7eadc68d..c874013a1 100644 --- a/glib/gkeyfile.h +++ b/glib/gkeyfile.h @@ -20,6 +20,10 @@ * Boston, MA 02111-1307, USA. */ +#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__G_LIB_H__) && !defined (GLIB_COMPILATION) +#error "Only <glib.h> can be included directly." +#endif + #ifndef __G_KEY_FILE_H__ #define __G_KEY_FILE_H__ |