On Sun, 23 Mar 2003 13:36:12 +0100 (Romance Standard Time) Vadim Zeitlin <[EMAIL 
PROTECTED]> wrote:

VZ> NB> It seems for cygwin both OS_UNIX and OS_WIN are defined:
VZ> 
VZ>  This is definitely a problem...

VZ> NB> Should I define OS_WIN only or deal with it on a case by case basis?
VZ> 
VZ>  I think only OS_UNIX should be defined as Cygwin provides a Unix
VZ> compilation environment, not Windows one. OTOH it's not impossible that
VZ> some some #ifdef's would become wrong then... So I'm afraid you do need to
VZ> look at all cases.

Cygwin provides a Unix compilation environment, but running environment
is Windows (and partly Unix). OS_UNIX/OS_WIN is for compilation and
__WINDOWS__ is for running, no?

VZ> NB> /cygdrive/e/M/M.build.cygwin.295/extra/src/c-client/mail.h:425: warning: 
`ERROR' redefined
VZ> NB> /usr/include/w32api/wingdi.h:299: warning: this is the location of the 
previous definition
VZ> 
VZ>  Again, <windows.h> is being included from somewhere :-( You probably
VZ> should simply add "#undef ERROR" somewhere to suppress this warning.

<windows.h> is included from wx/app.h:558 and wx/fontutil.h:30, so
what should I do?
BTW, fontutil.h has:

#if defined(__WXMSW__) 
    #include <windows.h> 
    #include "wx/msw/winundef.h" 
#endif 

so it everything bad should be undeffed, no?

Regards,
Nerijus



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to