
8 Apr
2006
8 Apr
'06
6:18 p.m.
I am wondering if it would be possible to write a computed include macro that is sufficiently compiler independent? E.e. given a macro #define BOOST_PLATFORM_INCLUDE(hdr) ... definition missing ... which should be usable as: #include BOOST_PLATFORM(foo.h) The effect being win32/foo.h included on one linux/foo.h included on another platform. I have yet figured out a way that can achieve something close, but gcc does not allow to use a parameterized macro. I would be interested if someone has some experience with this. Roland