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
This commit is contained in:
Michael Natterer
2008-03-14 19:30:38 +00:00
committed by Michael Natterer
parent 51d7fc9e96
commit f4bb21aa1d
60 changed files with 296 additions and 101 deletions

View File

@@ -18,11 +18,17 @@
* Boston, MA 02111-1307, USA.
*/
#include <glib/gtypes.h>
#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__G_LIB_H__) && !defined (GLIB_COMPILATION)
#error "Only <glib.h> can be included directly."
#endif
#ifndef __G_SEQUENCE_H__
#define __G_SEQUENCE_H__
#include <glib/gtypes.h>
G_BEGIN_DECLS
typedef struct _GSequence GSequence;
typedef struct _GSequenceNode GSequenceIter;
@@ -117,5 +123,6 @@ gint g_sequence_iter_compare (GSequenceIter *a,
GSequenceIter *g_sequence_range_get_midpoint (GSequenceIter *begin,
GSequenceIter *end);
G_END_DECLS
#endif /* __G_SEQUENCE_H__ */