Re: i386 build error with AUBase
Re: i386 build error with AUBase
- Subject: Re: i386 build error with AUBase
- From: Andrew Kimpton <email@hidden>
- Date: Mon, 16 Jan 2006 08:31:56 -0800
Marc Poirier wrote:
On Jan 15, 2006, at 2:35 PM, Jens Ayton wrote:
Marc Poirier:
error: ISO C++ forbids braced-groups within expressions
from the DISABLE_DENORMALS macro in line 1262 of AUBase.cpp. As a
workaround, I changed these 2 macros:
#define GETCSR() ({ int _result; asm volatile ("stmxcsr %0" :
"=m" (*&_result) ); /*return*/ _result; })
This could be because of the use of the ({ }), which is a GCC
extension. If you've specified pedantic mode or a non-GCC dialect,
you’ll get errors for this.
Or I could be using another compiler! I mean, I'm not, but if that is
a GCC extension, than that's an even more important reason for it to
be changed, since that makes for a rather non-portable SDK...
Absolutely - especially since Intel recently announced beta versions of
their compilers as 'add-ons' to XCode. I don't recall off hand how much
(if any) of the gcc extensions are supported in the Intel compilers.
Given their quality (prior experience indicates they do better than gcc)
I'm interested in switching to them, but of course if the AU SDK doesn't
build that's a big problem.
Andrew 8-)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden