From cdb03710941880016681243c1923b98a49466124 Mon Sep 17 00:00:00 2001 From: Al Sutton Date: Thu, 23 Feb 2012 18:23:10 +0000 Subject: Xcode 4.3 compatibility checkin Compilation on Xcode 4.3 does not handle inlined functions well and so the compile fails. This patch ensures that inlines are not used on that compiler. Signed-off-by: Al Sutton --- lib/ext2fs/ext2fs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index 26749414..d6eaa9f9 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -29,6 +29,14 @@ extern "C" { #define NO_INLINE_FUNCS #endif +/* + * The Apple compiler in Xcode 4.3 fails when inlines are enabled in + * so disable them for that compiler. + */ +#if __APPLE_CC__ >= 5621 +#define NO_INLINE_FUNCS +#endif + /* * Where the master copy of the superblock is located, and how big * superblocks are supposed to be. We define SUPERBLOCK_SIZE because -- cgit v1.2.3