gcc 2.95.3-1 and -mwin32

Norman Vine nhv@cape.com
Sat Mar 17 16:18:00 GMT 2001


Charles S. Wilson writes:
>>
>Robert Collins asked:
>> Will -mwin32 still be present? I think it should if you 
>> do not define WIN32.
>
>This complicates things somewhat; there would be *three* 
>separate behaviors:

Hmm.. 
I think I see "four" mutually exclusive distinct behaviors

<  $WIN32 below means 
     WIN32 _WIN32 __WIN32 __WIN32__ >

1) default 
   include  /usr/include/w32api  
   don't #define $WIN32
   #define __CYGWIN__

2) -mwin32
   include  /usr/include/w32api 
   #define $WIN32
   #define __CYGWIN__

3) -mno-win32 
   don't include  /usr/include/w32api 
   don't #define $WIN32
   #define __CYGWIN__

4) -mno-cygwin 
   include  /usr/include/mingw 
   include  /usr/include/w32api
   #define $WIN32  
   #define __MINGW32__ 
   don't #define __CYGWIN__

Cheers

Norman Vine



More information about the Cygwin-apps mailing list