| __attribute__ is a GCC feature, and in this case is being used to apply
format checking to uses of csound->Message() and other similar functions
(but there are many other attributes as well, of course). It is used
only if a recent version of GCC is detected (notice the #ifdef, HAVE_GCC3
is defined in H/sysdep.h). Maybe we need a more generic macro instead of
DIRENT_FIX, something like OLD_MACOSX, for Mac workarounds. It would be
then possible to not enable HAVE_GCC3 in sysdep.h for the problematic
OS X versions.
jpff@codemist.co.uk wrote:
> I am having total collapse on OSX. The error message is that on line
> 583 on H/csoundCore.h there is a missing `{' after the `;'
> That line looks innocuous, but error could be next line, which not
> being ANSI C I do not understand.
>
> void (*RewindScore)(void *csound); <========line 583
> #ifdef HAVE_GCC3
> __attribute__ ((__format__ (__printf__, 2, 3)))
> void (*Message)(void *csound, const char *format, ...);
> #else
> void (*Message)(void *csound, const char *format, ...);
> #endif
>
> The system is OSX 10.2 with gcc 3.1
>
> Seems a complete stopper on the Mac.
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |