On Mon, 24 Mar 2003 00:22:58 +0200 (EET) Nerijus Baliunas <[EMAIL PROTECTED]> wrote:
NB> Cygwin provides a Unix compilation environment, but running environment NB> is Windows (and partly Unix). OS_UNIX/OS_WIN is for compilation and NB> __WINDOWS__ is for running, no? No, not really. OS_UNIX/OS_WIN are defined by M while __WINDOWS__ is wxWindows thing, that's all. I'm afraid we do need to look at all tests and probably add another preprocessor macro to deal with cygwin properly (i.e. we should clearly have Unix behaviour for file paths under cygwin but Windows one for the browser invocation, for example). OTOH, are we supposed to use the registry or $HOME/.M/config under cygwin? Both answers seem to make sense... But we probably should strive to make the binary produced using cygwin toolchain as close to the one I build with VC++ as possible which means that, contrary to what I had written, we should only define OS_WIN for cygwin and deal with a few cases where cygwin Unix behaviour is a problem separately. NB> VZ> NB> /cygdrive/e/M/M.build.cygwin.295/extra/src/c-client/mail.h:425: warning: `ERROR' redefined NB> VZ> NB> /usr/include/w32api/wingdi.h:299: warning: this is the location of the previous definition NB> VZ> NB> VZ> Again, <windows.h> is being included from somewhere :-( You probably NB> VZ> should simply add "#undef ERROR" somewhere to suppress this warning. NB> NB> <windows.h> is included from wx/app.h:558 and wx/fontutil.h:30, so NB> what should I do? I'm afraid cclient sources include it anyhow, so just add that #undef somewhere. NB> BTW, fontutil.h has: NB> NB> #if defined(__WXMSW__) NB> #include <windows.h> NB> #include "wx/msw/winundef.h" NB> #endif NB> NB> so it everything bad should be undeffed, no? Not everything, just a few functions which cause problems with wxWindows. ERROR (what a stupid name for an identifier in a public header!) is not a function at all but a constant and wx/msw/winundef.h doesn't do anything about it. Regards, VZ ------------------------------------------------------- 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
