mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 20:29:21 +02: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
@@ -19,6 +19,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_UNICODE_H__
|
||||
#define __G_UNICODE_H__
|
||||
|
||||
@@ -382,7 +386,6 @@ GUnicodeScript g_unichar_get_script (gunichar ch) G_GNUC_CONST;
|
||||
|
||||
gchar *_g_utf8_make_valid (const gchar *name);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_UNICODE_H__ */
|
||||
|
Reference in New Issue
Block a user