gobject: define HAVE_OPTIONAL_FLAGS for sizeof(void*) > 8

The padding space for this extra field is also available if void* is
larger than 8 bytes.
This commit is contained in:
Alex Richardson 2023-09-12 01:27:33 -07:00
parent 35fe0d0bba
commit 6e51c2e150

View File

@ -128,7 +128,7 @@ enum {
#define OPTIONAL_BIT_LOCK_TOGGLE_REFS 3
#define OPTIONAL_BIT_LOCK_CLOSURE_ARRAY 4
#if SIZEOF_INT == 4 && GLIB_SIZEOF_VOID_P == 8
#if SIZEOF_INT == 4 && GLIB_SIZEOF_VOID_P >= 8
#define HAVE_OPTIONAL_FLAGS_IN_GOBJECT 1
#else
#define HAVE_OPTIONAL_FLAGS_IN_GOBJECT 0