dungeons-of-moria/umoria

Fails to compile on macOS using Xcode 12.5.1

yesmar opened this issue · 1 comments

I get two errors attempting to compile on macOS 11.4 using Xcode 12.5.1 (clang 12.0.5). In both cases the error is

anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Werror,-Wnon-c-typedef-for-linkage]

This error occurs on Game_t in game.h and Player_t in player.h. It seems to have to do with linkage of anonymous structs. (Possibly because they embed other anonymous structs?)

Fixed by 3a11113