Port recently-added bitfields back to GCC

* src/lisp.h (hash_table_std_test_t, hash_table_weakness_t):
Name these as enum tags as well as typedefs,
so that ENUM_BF works for them.
This commit is contained in:
Paul Eggert 2025-01-19 00:16:28 -08:00
parent fb434b8516
commit f9be225501

View file

@ -2552,7 +2552,7 @@ struct Lisp_Hash_Table;
It's unsigned and a subtype of EMACS_UINT. */
typedef unsigned int hash_hash_t;
typedef enum {
typedef enum hash_table_std_test_t {
Test_eql,
Test_eq,
Test_equal,
@ -2576,7 +2576,7 @@ struct hash_table_test
Lisp_Object name;
};
typedef enum {
typedef enum hash_table_weakness_t {
Weak_None, /* No weak references. */
Weak_Key, /* Reference to key is weak. */
Weak_Value, /* Reference to value is weak. */