OSDN Git Service

Xcode 4.3 compatibility checkin ics-x86
authorAl Sutton <al@funkyandroid.com>
Tue, 21 Feb 2012 12:32:30 +0000 (12:32 +0000)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 23 Feb 2013 09:20:09 +0000 (17:20 +0800)
Xcode 4.3 is unable to find the inlined methods when linking libSR_Recognizer,
so this patch clears the definition of PINLINE for the Xcode 4.3 compiler
which ensures that the methods which cause the errors are not inlined

Change-Id: I28d0bdf084cb60e93db80fe8a8c7ad6d0dd01dc0
Signed-off-by: Al Sutton <al@funkyandroid.com>
portable/include/PortExport.h

index a5a3d7e..e795575 100644 (file)
 #endif
 
 /**
+ * inlining causes problems for the Xcode 4.3 and 4.4 command line tools,
+ * so this is needed to ensure the methods aren't inlined on those compilers
+ */
+
+#if defined(__APPLE_CC__)
+#if __APPLE_CC__ >= 5621
+#undef PINLINE
+#define PINLINE
+#endif
+#endif
+
+/**
  * @}
  */