precompile header building error with latest Ogre 1.9 latest bitbucket source with XCode

Description

when building the the latest ogre bitbucket source with Xcode for mac os x, I get lots of build errors. and I find out that before the revision of 5492, there is no building errors. It is about the precompiled header: OgreStableHeaders.h:. I find out that the cause is in the header file OgrePlatform.h, in revision 5493, it had added these lines :

  1. ifndef _ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED_

  2. define _ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED_ 0

  3. endif

  4. ifndef __IPHONE_OS_VERSION_MIN_REQUIRED

  5. define __IPHONE_OS_VERSION_MIN_REQUIRED 0

  6. endif


if I comments these lines , the precompile header build errors will disappear.

In file included from /Users/kizanliu/mywork/merge/ogre/OgreMain/include/OgreStableHeaders.h:41:
In file included from /Users/kizanliu/mywork/merge/ogre/OgreMain/include/OgreArchive.h:31:
In file included from /Users/kizanliu/mywork/merge/ogre/OgreMain/include/OgrePrerequisites.h:325:
In file included from /Users/kizanliu/mywork/merge/ogre/OgreMain/include/OgreStdHeaders.h:116:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:11:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:791:32: error: expected ';' after top level declarator
const CFStringRef kCFURLPathKey CF_AVAILABLE(10_8, 6_0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:998:59: error: expected ';' after top level declarator

Environment

XCode 4.6.3 Mac OS X 10.8.3

Activity

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created December 13, 2013 at 9:57 AM
Updated December 14, 2013 at 9:13 AM
Resolved December 14, 2013 at 9:12 AM