VS2010, error on this line 'for (int n = i + boneCount; i < n; i++)'
....\ThirdParty\spine\Skeleton.c(191): error C2143: syntax error : missing ';' before 'type'
1>....\ThirdParty\spine\Skeleton.c(191): error C2143: syntax error : missing ';' before 'type'
1>....\ThirdParty\spine\Skeleton.c(191): error C2143: syntax error : missing ')' before 'type'
1>....\ThirdParty\spine\Skeleton.c(191): error C2143: syntax error : missing ';' before 'type'
1>....\ThirdParty\spine\Skeleton.c(191): error C2065: 'n' : undeclared identifier
1>....\ThirdParty\spine\Skeleton.c(191): warning C4552: '<' : operator has no effect; expected operator with side-effect
1>....\ThirdParty\spine\Skeleton.c(191): error C2059: syntax error : ')'
1>....\ThirdParty\spine\Skeleton.c(192): error C2146: syntax error : missing ';' before identifier '_sortBone'
as I confident, this is not pure c-style code you use ...
if you replace it with c-style, it compiles:
int n;
for (n = i + boneCount; i < n; i++)