Csound Csound-dev Csound-tekno Search About

[Cs-dev] H/csoundCore.h

Date2005-05-14 17:01
Fromjpff@codemist.co.uk
Subject[Cs-dev] H/csoundCore.h
I still have problems with the lines

    void (*RewindScore)(void *csound);
#ifdef HAVE_GCC3
    __attribute__ ((__format__ (__printf__, 2, 3)))
      void (*Message)(void *csound, const char *format, ...);
    __attribute__ ((__format__ (__printf__, 3, 4)))
      void (*MessageS)(void *csound, int attr, const char *format, ...);
#else
      void (*Message)(void *csound, const char *format, ...);
      void (*MessageS)(void *csound, int attr, const char *format, ...);
#endif
 
On my Mac I have GCC3 but the __attribute work causes it to throw an
error.  Whatever this is, it is not on all gcc3 systems; can it be
corrected as I have to fix it every down-load?
==John ffitch


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-05-14 17:23
FromIstvan Varga
SubjectRe: [Cs-dev] H/csoundCore.h
jpff@codemist.co.uk wrote:

> On my Mac I have GCC3 but the __attribute work causes it to throw an
> error.  Whatever this is, it is not on all gcc3 systems; can it be
> corrected as I have to fix it every down-load?

Try replacing this line in sysdep.h:

#if (defined(__GNUC__) && (__GNUC__ >= 3))

with:

#if (defined(__GNUC__) && (__GNUC__ >= 3)) !defined(DIRENT_FIX)

this way, advanced features of GCC 3.x and newer will not be used on the
"problematic" OS X versions.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-05-14 17:31
FromIstvan Varga
SubjectRe: [Cs-dev] H/csoundCore.h
Istvan Varga wrote:

> #if (defined(__GNUC__) && (__GNUC__ >= 3)) !defined(DIRENT_FIX)

With correcting a typing error:

#if (defined(__GNUC__) && (__GNUC__ >= 3)) && !defined(DIRENT_FIX)


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net