mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 02:47:52 +02:00
Make PLT-reduction work with gcc4, and don't include everything in
2005-03-13 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in galias.h: * glib/glib.symbols: Group symbols by header and source file. * glib/makegalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegalias.pl -def * glib/Makefile.am (galiasdef.c): Add a rule to generate this file. * glib/*.c: Include galias.h after the other GLib headers, include galiasdef.c at the bottom.
This commit is contained in:
committed by
Matthias Clasen
parent
96913f7a50
commit
608a31b98e
@@ -40,9 +40,9 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "galias.h"
|
||||
#include "glib.h"
|
||||
#include "gthreadinit.h"
|
||||
#include "galias.h"
|
||||
|
||||
#if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P
|
||||
# define g_system_thread_equal_simple(thread1, thread2) \
|
||||
@@ -837,3 +837,6 @@ g_static_rw_lock_free (GStaticRWLock* lock)
|
||||
}
|
||||
g_static_mutex_free (&lock->mutex);
|
||||
}
|
||||
|
||||
#define __G_THREAD_C__
|
||||
#include "galiasdef.c"
|
||||
|
Reference in New Issue
Block a user