mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-27 14:32:16 +01:00
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:
committed by
Michael Natterer
parent
51d7fc9e96
commit
f4bb21aa1d
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user