slembcke/Chipmunk2D — pull request #75 by ewmailing (2014-05-30 12:51:34+00:00)
Title: Fixes to compile with Visual Studio, and as a .dll

This is against the 6.2.x branch.

1) The use of C99 inline by calling projects breaks the compile. This is because Visual Studio is a piece of junk and hasn't updated their C compliance in 25 years. Here is a workaround.

#if defined(_MSC_VER)
#define inline __inline
#endif

2) cpConstraintActivateBodies in cpConstraint.h can't handle declaring cpBody *b after the first line because Visual Studio's C89 compiler can't handle C99 declaring variables anywhere in the function.

3) The chipmunk.def is out of date and not all the symbols are being exported.
These were all found by brute force. I did not look for removed APIs.