solenv/inc/premac.h |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0b0f3b0530b8f08c4005264adc5402ea5d447cea
Author: Tor Lillqvist <[email protected]>
Date:   Tue Oct 4 13:35:10 2011 +0300

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

diff --git a/solenv/inc/premac.h b/solenv/inc/premac.h
index c60c42c..b5fff62 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: */
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to