
16 Jul
2004
16 Jul
'04
12:48 p.m.
David Abrahams wrote:
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) // win32: ....
Does it mean I have to use the same conditional? Which compilers define __WIN32__ or WIN32, but don't define _WIN32? Shouldn't there be a single BOOST_WINDOWS macros to help in this cases?
Yes and yes, IMO.
What about the attached patch, then?
# if !defined( BOOST_WINDOWS ) && !defined( BOOST_POSIX ) # if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|| defined(__CYGWIN__)
# define BOOST_WINDOWS # else # define BOOST_POSIX # endif # endif
...which is strange because Cygwin is a Posix platform.
Yea, strange. It's bad that cygwin is not in regression tests.... - Volodya