diff --git a/spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.h b/spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.h index 34816348e..cb98f7ea8 100644 --- a/spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.h +++ b/spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.h @@ -34,7 +34,9 @@ #include +#ifdef __cplusplus extern "C" { +#endif typedef struct Cocos2dAttachmentLoader { spAttachmentLoader super; @@ -43,6 +45,8 @@ typedef struct Cocos2dAttachmentLoader { Cocos2dAttachmentLoader* Cocos2dAttachmentLoader_create (spAtlas* atlas); +#ifdef __cplusplus } +#endif #endif /* SPINE_COCOS2DATTACHMENTLOADER_H_ */ diff --git a/spine-cocos2dx/3/src/spine/SkeletonBatch.h b/spine-cocos2dx/3/src/spine/SkeletonBatch.h index 2c7ae9454..523919fcd 100644 --- a/spine-cocos2dx/3/src/spine/SkeletonBatch.h +++ b/spine-cocos2dx/3/src/spine/SkeletonBatch.h @@ -41,7 +41,7 @@ class SkeletonBatch { public: /* Sets the max number of vertices that can be drawn in a single frame. Best to call before getInstance is called for the * first time. Default is 8192. */ - static void SkeletonBatch::setBufferSize (int vertexCount); + static void setBufferSize (int vertexCount); static SkeletonBatch* getInstance ();