Kaydet (Commit) 0b0f3b05 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Do Objective-C -specific foo only when compiling Objective-C

üst 27be19bd
...@@ -47,11 +47,13 @@ ...@@ -47,11 +47,13 @@
#define StringPtr MacOSStringPtr #define StringPtr MacOSStringPtr
#define TimeValue MacOSTimeValue #define TimeValue MacOSTimeValue
#ifdef __OBJC__
#import <Foundation/NSObjCRuntime.h> #import <Foundation/NSObjCRuntime.h>
#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050 #if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050
@class CALayer; @class CALayer;
@class NSViewController; @class NSViewController;
typedef int NSColorRenderingIntent; typedef int NSColorRenderingIntent;
#endif #endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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