"Hrvoje Niksic" wrote:

I think I'll make config-compiler.h even more abstract, for example:

// In mingw section
#ifdef ENABLE_IPV6
# define NEED_GAI_STRERROR
#endif

Adding yet another define, seems so obfuscate the code more, IMO.
gai_strerror() is used only in host.c, so why not simply add to it's top:

#if defined(__MINGW32__) || defined(__WATCOMC__)
# undef gai_strerror
# define gai_strerror windows_strerror
#endif

Having __COMPILER__ in the source can't be that bad (ref. NeXT and __BEOS__).

--gv

Reply via email to