瀏覽代碼

Include guards.

NathanSweet 12 年之前
父節點
當前提交
1c74777487
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      spine-cocos2dx/src/spine/spine-cocos2dx.h

+ 5 - 0
spine-cocos2dx/src/spine/spine-cocos2dx.h

@@ -23,6 +23,9 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  ******************************************************************************/
 
+#ifndef SPINE_COCOS2DX_H_
+#define SPINE_COCOS2DX_H_
+
 #include <spine/spine.h>
 #include "cocos2d.h"
 
@@ -72,3 +75,5 @@ typedef struct {
 } Cocos2dxRegionAttachment;
 
 }
+
+#endif /* SPINE_COCOS2DX_H_ */