reintroduce typedef gulong GType; for C++, to avoid C++ specific ABI

Fri Jun 22 11:31:27 2007  Tim Janik  <timj@gtk.org>

        * gtype.h: reintroduce typedef gulong GType; for C++, to avoid
        C++ specific ABI breakage.



svn path=/trunk/; revision=5582
This commit is contained in:
Tim Janik 2007-06-22 09:34:33 +00:00 committed by Tim Janik
parent 90240bf12d
commit ea4efd7bba
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Jun 22 11:31:27 2007 Tim Janik <timj@gtk.org>
* gtype.h: reintroduce typedef gulong GType; for C++, to avoid
C++ specific ABI breakage.
2007-06-18 Matthias Clasen <mclasen@redhat.com>
* === Released 2.13.5 ===

View File

@ -88,7 +88,11 @@ G_BEGIN_DECLS
/* Typedefs
*/
#if GLIB_SIZEOF_SIZE_T != GLIB_SIZEOF_LONG || !defined __cplusplus
typedef gsize GType;
#else /* for historic reasons, C++ links against gulong GTypes */
typedef gulong GType;
#endif
typedef struct _GValue GValue;
typedef union _GTypeCValue GTypeCValue;
typedef struct _GTypePlugin GTypePlugin;