i386 build error with AUBase
i386 build error with AUBase
- Subject: i386 build error with AUBase
- From: Marc Poirier <email@hidden>
- Date: Sun, 15 Jan 2006 14:07:05 -0500
When I try to compile a universal binary of an AU, I get this error:
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; })
#define SETCSR( a ) { int _temp = a; asm volatile( "ldmxcsr %
0" : : "m" (*&_temp ) ); }
to be these inline functions:
inline int GETCSR() { int result; asm volatile ("stmxcsr %0" :
"=m" (*&result) ); return result; }
inline void SETCSR( int a ) { int temp = a; asm volatile( "ldmxcsr
%0" : : "m" (*&temp ) ); }
But I guess I'm just wondering, is the AU SDK supposed to compile as
it was? Or is it some simpler error in the macros, or something else?
BTW, I just updated to Xcode 2.2.1. This problem didn't happen to me
a few months back when I made some universal builds of AUs, but that
also might have been with an earlier version of the AU SDK without
those macros, I'm not sure.
Marc
_______________________________________________
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