ReadyTalk / avian

[INACTIVE] Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's features, suitable for building self-contained applications.
https://readytalk.github.io/avian/
Other
1.22k stars 172 forks source link

Minimum viable fix for enums from vm namespaces clashing with identifiers from includes #568

Open paulie-g opened 5 years ago

paulie-g commented 5 years ago

Various identifiers from Avian's vm::OpCode enum - fadd, fmul, fsub, fdiv - clash with fadd, fmul, fsub, fdiv declared elsewhere when compiling on a modern Linux system. This patch is a kludge obviously, but given that this is not an actively maintained project, I chose to make it as small as possible so it doesn't clash with other patches in future.