Browse Source

Fix for including in .mm file.

NathanSweet 12 years ago
parent
commit
0c76ba47da
1 changed files with 4 additions and 1 deletions
  1. 4 1
      spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.h

+ 4 - 1
spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.h

@@ -29,6 +29,10 @@
 #include <spine/spine.h>
 #include <spine/spine.h>
 #include "cocos2d.h"
 #include "cocos2d.h"
 
 
+#ifdef __cplusplus
+using namespace spine;
+#endif
+
 @interface CCSkeleton : CCNodeRGBA<CCBlendProtocol> {
 @interface CCSkeleton : CCNodeRGBA<CCBlendProtocol> {
 @private
 @private
 	bool ownsSkeleton;
 	bool ownsSkeleton;
@@ -71,7 +75,6 @@ void RegionAttachment_updateQuad (RegionAttachment* self, Slot* slot, ccV3F_C4B_
 #ifdef __cplusplus
 #ifdef __cplusplus
 }
 }
 }
 }
-using namespace spine;
 #endif
 #endif
 
 
 #endif /* SPINE_COCOS2D_H_ */
 #endif /* SPINE_COCOS2D_H_ */