| You can use __CYGWIN__ to identify Cygwin (two trailing and leading
underscores), and you can use __GNUC__ to identify gcc or g++.
============================================
Michael Gogins
gogins at pipeline period com
Irreducible Productions
CsoundVST, an extended version of Csound for programming music and sound
Available at http://sourceforge.net/projects/csound/
============================================
----- Original Message -----
From: "steven"
To: "Csound Developers Discussion List"
Sent: Tuesday, December 02, 2003 6:27 PM
Subject: [CSOUND-DEV:3610] -mno-cygwin and csound4 on win2k, autoconf
> Hi all,
>
> Using -mno-cygwin with the autoconf build there is an error I get that
> holds up the build in main.c:
>
> #if defined(HAVE_FLTK) && (defined(LINUX) || defined(SGI) || defined(sol))
> if (sig == SIGALRM) return;
> #elif defined(FLTK_GUI) && (!defined(_MSC_VER))
> if (sig == SIGALRM) return;
> #endif
>
> I've gotten past it with:
>
> #if !defined(WIN32)
> #if defined(HAVE_FLTK) && (defined(LINUX) || defined(SGI) || defined(sol))
> if (sig == SIGALRM) return;
> #elif defined(FLTK_GUI) && (!defined(_MSC_VER))
> if (sig == SIGALRM) return;
> #endif
> #endif
>
> but am not quite sure this is best.
>
> The reason the first set of #ifdef's doesn't compile with -mno-cygwin is
> that I don't believe there is a SIGALRM native to windows. If using
> Cywin but not using -mno-cygwin, cygwin has emulation for SIGALRM, so if
> WIN32 is defined but cygwin is being used, then SIGALRM won't be
> compiled in at this section if using the second set of #ifdef's. I'm
> not confident I know exactly what is the best way to reorder this stuff,
> so any help on this is greatly appreciated.
>
> thanks,
> steven
> |