change define macros to avoid run error on mac 32 bit

This commit is contained in:
Huabing.Xu 2014-07-21 18:12:46 +08:00
parent 8e3220ba9e
commit 3403182f3e
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ extern "C"
{
// To resolve link error when building 32bits with Xcode 6.
// More information please refer to the discussion in https://github.com/cocos2d/cocos2d-x/pull/6986
#if defined(__APPLE__) || defined(__unix)
#if defined (__unix) || (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
#ifndef __ENABLE_COMPATIBILITY_WITH_UNIX_2003__
#define __ENABLE_COMPATIBILITY_WITH_UNIX_2003__
#include <stdio.h>