From: Michael Jerris Date: Mon, 23 Nov 2009 21:37:42 +0000 (+0000) Subject: fix spandsp build on 32 bit 10.6 OS X builds (LBCODEC-4,MODAPP-351) X-Git-Tag: v1.0.6~1274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b75f6bc22dcdd888c433024738f9f9339f1f7fbb;p=thirdparty%2Ffreeswitch.git fix spandsp build on 32 bit 10.6 OS X builds (LBCODEC-4,MODAPP-351) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15631 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/spandsp/src/gsm0610_rpe.c b/libs/spandsp/src/gsm0610_rpe.c index 6e48b161fb..416dcc311a 100644 --- a/libs/spandsp/src/gsm0610_rpe.c +++ b/libs/spandsp/src/gsm0610_rpe.c @@ -55,11 +55,20 @@ /* 4.2.13 .. 4.2.17 RPE ENCODING SECTION */ +#if defined(__GNUC__) && defined(__i386__) +#define SPANDSP_USE_I386_ASM +#if (defined(__APPLE__) || defined(macintosh)) && defined(__MAC_OS_X_VERSION_MIN_REQUIRED) +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 +#undef SPANDSP_USE_I386_ASM +#endif +#endif +#endif + /* 4.2.13 */ static void weighting_filter(const int16_t *e, // signal [-5..0.39.44] IN int16_t x[40]) { -#if defined(__GNUC__) && defined(__i386__) +#if defined(SPANDSP_USE_I386_ASM) /* Table 4.4 Coefficients of the weighting filter */ /* This must be padded to a multiple of 4 for MMX to work */ static const union