Commit e112ba8f authored by Sean McBride's avatar Sean McBride Committed by Code Review

Merge topic 'cocoa-arc' into master

bcb33444 Add #error when trying to build as Cocoa ARC
parents 02d690c7 bcb33444
......@@ -17,8 +17,6 @@ PURPOSE. See the above copyright notice for more information.
// VTK requires the Mac OS X 10.5 SDK or later.
// However, this file is meant to allow us to use features from newer
// SDKs by adding workarounds to still support the minimum SDK.
// Currently, there is no such need, but there was in the past, and
// keeping this file allows for the possibility again in the future.
// It is safe to include this header multiple times.
#include <AvailabilityMacros.h>
......@@ -30,4 +28,14 @@ PURPOSE. See the above copyright notice for more information.
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050
#error VTK requires a deployment target of Mac OS X 10.5 or later
#endif
// __has_feature is new in the 10.7 SDK, define it here if it's not yet defined.
#ifndef __has_feature
#define __has_feature(x) 0
#endif
#if __has_feature(objc_arc)
#error VTK does not yet support ARC memory management
#endif
// VTK-HeaderTest-Exclude: vtkCocoaMacOSXSDKCompatibility.h
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment