1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-06-28 21:14:57 +03:00

Declare i7_properties as extern

I guess this worked as written in Clang, but GCC interprets the
declaration without "extern" as a definition, meaning that the actual
definition later in inform7_clib.c counts as a double definition.
This commit is contained in:
Philip Chimento 2022-04-11 22:06:36 -07:00
parent 72a4cff31b
commit bd0a483b70
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ typedef struct i7_property_set {
i7word_t address[I7_MAX_PROPERTY_IDS];
i7word_t len[I7_MAX_PROPERTY_IDS];
} i7_property_set;
i7_property_set i7_properties[];
extern i7_property_set i7_properties[];
i7word_t i7_prop_addr(i7process_t *proc, i7word_t K, i7word_t obj, i7word_t pr);
i7word_t i7_prop_len(i7process_t *proc, i7word_t K, i7word_t obj, i7word_t pr);

View file

@ -808,7 +808,7 @@ typedef struct i7_property_set {
i7word_t address[I7_MAX_PROPERTY_IDS];
i7word_t len[I7_MAX_PROPERTY_IDS];
} i7_property_set;
i7_property_set i7_properties[];
extern i7_property_set i7_properties[];
i7word_t i7_prop_addr(i7process_t *proc, i7word_t K, i7word_t obj, i7word_t pr);
i7word_t i7_prop_len(i7process_t *proc, i7word_t K, i7word_t obj, i7word_t pr);