From f09d1b6f7933065cd6102d968f108048c002a3aa Mon Sep 17 00:00:00 2001 From: Al Sutton Date: Tue, 21 Feb 2012 12:32:30 +0000 Subject: Xcode 4.3 compatibility checkin 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 --- portable/include/PortExport.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/portable/include/PortExport.h b/portable/include/PortExport.h index a5a3d7e..e795575 100644 --- a/portable/include/PortExport.h +++ b/portable/include/PortExport.h @@ -116,6 +116,18 @@ #define PINLINE #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 + /** * @} */ -- cgit v1.2.3