From 3dcce59e8460de5c65e038a236395a7b7aa35324 Mon Sep 17 00:00:00 2001 From: cpascal Date: Thu, 6 Nov 2014 07:20:41 +0900 Subject: [PATCH] Fix error with CC_ENABLE_SCRIPT_BINDING=0 There are too much compile error if I set EE_ENABLE_SCRIPT_BINDING=0. CCEventTouch and CCTouch related things... This is temporary fix... Many source/header files must be patched for the right way.. --- cocos/base/CCScriptSupport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/base/CCScriptSupport.h b/cocos/base/CCScriptSupport.h index 1079dd0903..da896a9f07 100644 --- a/cocos/base/CCScriptSupport.h +++ b/cocos/base/CCScriptSupport.h @@ -27,8 +27,6 @@ #define __SCRIPT_SUPPORT_H__ #include "base/ccConfig.h" -#if CC_ENABLE_SCRIPT_BINDING - #include "platform/CCCommon.h" #include "base/CCTouch.h" #include "base/CCEventTouch.h" @@ -37,6 +35,8 @@ #include #include +#if CC_ENABLE_SCRIPT_BINDING + typedef struct lua_State lua_State; NS_CC_BEGIN