mirror of
https://github.com/ganelson/inform.git
synced 2024-06-30 22:14:58 +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:
parent
72a4cff31b
commit
bd0a483b70
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue