diff --git a/cocos2dx/Android.mk b/cocos2dx/Android.mk index 39fb290244..dd9ae67c3e 100644 --- a/cocos2dx/Android.mk +++ b/cocos2dx/Android.mk @@ -170,8 +170,8 @@ LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libtiff_static LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libwebp_static # define the macro to compile through support/zip_support/ioapi.c -LOCAL_CFLAGS := -Wno-psabi -Wno-deprecated-declarations -DUSE_FILE32API -LOCAL_EXPORT_CFLAGS := -Wno-psabi -Wno-deprecated-declarations -DUSE_FILE32API +LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API +LOCAL_EXPORT_CFLAGS := -Wno-psabi -DUSE_FILE32API include $(BUILD_STATIC_LIBRARY) diff --git a/cocos2dx/proj.linux/cocos2dx.mk b/cocos2dx/proj.linux/cocos2dx.mk index bb1b98d495..85d57ce04a 100644 --- a/cocos2dx/proj.linux/cocos2dx.mk +++ b/cocos2dx/proj.linux/cocos2dx.mk @@ -7,8 +7,8 @@ CXX = g++ # GCC 4.6 is primary platform for cocos2d v.3, because it's default compiler for Android, # Blackberry, some Linux distributions.It supports all important features of c++11, but have # no flag "-std=c++11" (which was turned on in version 4.7). -CCFLAGS += -MMD -Werror -Wno-deprecated-declarations -fPIC -CXXFLAGS += -MMD -Werror -Wno-deprecated-declarations -fPIC -std=gnu++0x +CCFLAGS += -MMD -Werror -fPIC +CXXFLAGS += -MMD -Werror -fPIC -std=gnu++0x ARFLAGS = cr DEFINES += -DLINUX -DCC_KEYBOARD_SUPPORT