octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MINGW build


From: Mumit Khan
Subject: Re: MINGW build
Date: Thu, 10 Oct 2002 18:51:40 -0500 (CDT)

On Thu, 10 Oct 2002, John W. Eaton wrote:

> On 23-Sep-2002, Mumit Khan <address@hidden> wrote:
>
> | I do have a comment on using the pre-processor macro/s to determine
> | the system or system type. If you want a Windows 32 bit system, then
> | it's __WIN32__ and/or __WIN32 (the non-underscored counterparts are
> | an abomination); if you want to exclude Cygwin, then it's __WIN32__ &&
> | !__CYGWIN__. Mingw is plain Windows32, and thus covered by __WIN32__,
> | and there is typically never a good reason to use __MINGW32__ explicitly,
> | unless you're taking advantage of something specific in Mingw helper
> | libraries.
>
> Hmm.
>
> Neither of the cygwin compilers that I have seem to define __WIN32__
> or __WIN32:

My mistake. Cygwin GCC is now "unix-only" by default, and will not define
_WIN32 etc without the -mwin32 option. Something I had completely
forgotten about, and the fact that my configure scripts automatically adds
-mwin32 if appropriate fed that illusion.

Mumit




reply via email to

[Prev in Thread] Current Thread [Next in Thread]