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 :
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
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 :
ifndef _ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED_
define _ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED_ 0
endif
ifndef __IPHONE_OS_VERSION_MIN_REQUIRED
define __IPHONE_OS_VERSION_MIN_REQUIRED 0
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