Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 1999-12-19 14:47:52


Greg concurred:
> As Dave surmised, the Microsoft standard library headers are littered
> with _MSC_VER conditionals, so you can't compile the headers correctly
> without defining _MSC_VER appropriately. And given just how buggy the
> compiler is it's hard, and often no favor to the user, to be bug-for-bug
> compatible. What you need is to fix as many bugs as you can while still
> being able to compile the libraries.

Come to think of it, there's probably a better way (are you listening,
vendors?). The STLPort does stuff like this all the time:

// windows.h
#ifdef _MSC_VER
# define VENDOR_WINDOWS_H_MSC_VER _MSC_VER
# undef _MSC_VER
#endif

#define _MSC_VER PRETEND_TO_BE_MSVC
#include "stock_microsoft/windows.h"
#undef _MSC_VER

#ifdef VENDOR_WINDOWS_H_MSC_VER
# define _MSC_VER VENDOR_WINDOWS_H_MSC_VER
# undef VENDOR_WINDOWS_H_MSC_VER
#endif

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk