Okay, how in the actual fuck do I forward-declare a variable of an anonymous str...
Ity Kitty [unit X-69] - VIOLENT FUCK ⇉ 40C3 @tranquillity@mastodon.minionflo.net
Okay, how in the actual fuck do I forward-declare a variable of an anonymous struct type in a header then define its value in a C file?
We tried
extern struct {int a;} foo;
Then
foo = {0};
But that treats the latter with implicit int for some reason???
I guess you simply cannot use an anonymous struct here, or have to copy-pasta the struct def