Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2001-11-07 22:15:19


On Wednesday, November 7, 2001, at 09:43 PM, Jesse Jones wrote:

> I'm still trying to get my make files past automake so I don't have a
> lot to report yet. I did build the thread library with CodeWarrior
> though. If you target Mach-O (as opposed to CFM) pthreads are
> available, but the configuration headers don't catch this. I added
> the following to the metrowerks.hpp file:
>
> #include <cstddef> // include a light-weight header
> #ifdef _BSD_PTRDIFF_T_ // check for one of the BSD Unix defines
> #define BOOST_HAS_THREADS // if we found it assume we're
> targeting Mach-O
> #endif
>
> This is a little lame, but Metrowerks doesn't seem to provide a
> predefined macro to signal that Mach-O is being targeted.

Try #if __MACH__

And thanks for the work!

-Howard


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