Cocos2dAttachmentLoader needs to be C++.

This commit is contained in:
NathanSweet 2016-04-03 12:58:36 +02:00
parent eb90cbf260
commit 5dff1b921a
4 changed files with 3 additions and 7 deletions

View File

@ -145,7 +145,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\..\src\spine\AttachmentVertices.cpp" /> <ClCompile Include="..\..\src\spine\AttachmentVertices.cpp" />
<ClCompile Include="..\..\src\spine\Cocos2dAttachmentLoader.c" /> <ClCompile Include="..\..\src\spine\Cocos2dAttachmentLoader.cpp" />
<ClCompile Include="..\..\src\spine\SkeletonBatch.cpp" /> <ClCompile Include="..\..\src\spine\SkeletonBatch.cpp" />
<ClCompile Include="..\..\src\spine\SkeletonAnimation.cpp" /> <ClCompile Include="..\..\src\spine\SkeletonAnimation.cpp" />
<ClCompile Include="..\..\src\spine\SkeletonRenderer.cpp" /> <ClCompile Include="..\..\src\spine\SkeletonRenderer.cpp" />

View File

@ -83,10 +83,10 @@
<ClCompile Include="..\..\src\spine\SkeletonBatch.cpp"> <ClCompile Include="..\..\src\spine\SkeletonBatch.cpp">
<Filter>src</Filter> <Filter>src</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\spine\Cocos2dAttachmentLoader.c"> <ClCompile Include="..\..\src\spine\AttachmentVertices.cpp">
<Filter>src</Filter> <Filter>src</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\spine\AttachmentVertices.cpp"> <ClCompile Include="..\..\src\spine\Cocos2dAttachmentLoader.cpp">
<Filter>src</Filter> <Filter>src</Filter>
</ClCompile> </ClCompile>
</ItemGroup> </ItemGroup>

View File

@ -34,9 +34,7 @@
#include <spine/AtlasAttachmentLoader.h> #include <spine/AtlasAttachmentLoader.h>
#ifdef __cplusplus
extern "C" { extern "C" {
#endif
typedef struct Cocos2dAttachmentLoader { typedef struct Cocos2dAttachmentLoader {
spAttachmentLoader super; spAttachmentLoader super;
@ -45,8 +43,6 @@ typedef struct Cocos2dAttachmentLoader {
Cocos2dAttachmentLoader* Cocos2dAttachmentLoader_create (spAtlas* atlas); Cocos2dAttachmentLoader* Cocos2dAttachmentLoader_create (spAtlas* atlas);
#ifdef __cplusplus
} }
#endif
#endif /* SPINE_COCOS2DATTACHMENTLOADER_H_ */ #endif /* SPINE_COCOS2DATTACHMENTLOADER_H_ */