That appears to work (as far as I can tell). It's the same solution I found, except it specifically targets MSVC rather than simply targeting any compiler which doesn't support va_copy.
While we're on the "MSVC Specific" subject, I had to make another couple of trivial changes to avoid compiler conflicts...
Neither of these actually stop it compiling, but they both produce warnings...
While we're on the "MSVC Specific" subject, I had to make another couple of trivial changes to avoid compiler conflicts...
- I had to change GF_INERTIA to GF_INERT to avoid conflicts with a GF_INERTIA definition in Windows 7's windows.h (I think this one has been mentioned before).
- I had to change the "class" and "race" members of the birther structure to "pclass" and "prace" ("class", of course, being a reserved word in C++ - and MSVC doesn't like you calling things that even if you're doing plain C).
Neither of these actually stop it compiling, but they both produce warnings...
Comment