From eb90cbf2608cbf1613c76fb9ef63b0b64e877e71 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sun, 3 Apr 2016 12:48:20 +0200 Subject: [PATCH] Minor fixes. --- spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.h | 4 ++++ spine-cocos2dx/3/src/spine/SkeletonBatch.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 ();