
6 Dec
2004
6 Dec
'04
4:31 p.m.
Simon Marlow wrote:
[...] I doubt it'll be trivial - probably lots of
#ifdef mingw32_TARGET_OS
will need to change to
#if defined(mingw32_TARGET_OS) || defined(cygwin_TARGET_OS) [...]
Hmmm, having some fragile OS-dependent #ifdefs is not the way to go. While you are there, every #ifdef mingw32_TARGET_OS which needs to be changed should be replaced by something feature-specific like #if HAVE_FOO_BAR_FUNCTION and the autoconf stuff be extended accordingly. If you don't have M4 as your hobby, keeping #ifdef mingw32_TARGET_OS #define HAVE_FOO_BAR_FUNCTION #undef HAVE_BLAH ... #endif in a single prominent place is much better than spreading this all over the code Cheers, S.