[Coin-discuss] OSX 10.2.8, CoinTime.hpp and Sbb
Matthew Saltzman
mjs at ces.clemson.edu
Fri Oct 31 18:31:51 EST 2003
On Fri, 31 Oct 2003 ScottWelz at aol.com wrote:
> Matt,
>
> There is a flag that we've used in other areas of COIN for these kinds of
> issues. OSX is based on the MACH microkernel so the compiler flag __MACH__ is
> recognized
> >[...]
> > In a message dated 10/30/03 6:05:29 AM, devries at ma.tum.de writes:
> >
> >
> > > #include <ctime>
> > > #if defined(_MSC_VER)
> > > // Turn off compiler warning about long names
> > > # pragma warning(disable:4786)
> > > #else
> > > // for macosx
> > > #include <sys/time.h>
> > > //
> > > #include <sys/resource.h>
> > > #endif
Added patch:
#include <ctime>
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragma warning(disable:4786)
#else
// MacOS-X
#if defined(__MACH__)
#include <sys/time.h>
#endif
#include <sys/resource.h>
#endif
See if that does the trick.
--
Matthew Saltzman
Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs
More information about the Coin-discuss
mailing list