NathanSweet 9 жил өмнө
parent
commit
eb90cbf260

+ 4 - 0
spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.h

@@ -34,7 +34,9 @@
 
 #include <spine/AtlasAttachmentLoader.h>
 
+#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_ */

+ 1 - 1
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 ();