summaryrefslogtreecommitdiffstats
path: root/solenv
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-10-04 13:35:10 +0300
committerTor Lillqvist <tml@iki.fi>2011-10-04 13:35:10 +0300
commit0b0f3b0530b8f08c4005264adc5402ea5d447cea (patch)
tree54e0953e8689e3dbcd98407ebbe748f06be004cd /solenv
parentWaE: '==' : signed/unsigned mismatch (diff)
downloadcore-0b0f3b0530b8f08c4005264adc5402ea5d447cea.tar.gz
core-0b0f3b0530b8f08c4005264adc5402ea5d447cea.zip
Do Objective-C -specific foo only when compiling Objective-C
Diffstat (limited to 'solenv')
-rw-r--r--solenv/inc/premac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/inc/premac.h b/solenv/inc/premac.h
index c60c42cd7749..b5fff62f805d 100644
--- a/solenv/inc/premac.h
+++ b/solenv/inc/premac.h
@@ -47,11 +47,13 @@
#define StringPtr MacOSStringPtr
#define TimeValue MacOSTimeValue
+#ifdef __OBJC__
#import <Foundation/NSObjCRuntime.h>
#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050
@class CALayer;
@class NSViewController;
typedef int NSColorRenderingIntent;
#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */