<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Oops...I hit the send button too early. As I said, the __MACH__ flag is used to #ifdef some things in other parts of COIN (see CoinFinite.hpp, CoinSignal.hpp, and BCP_os.hpp). Something similar in CoinTime would be helpful.<BR>
<BR>
Thanks, Scott<BR>
<BR>
<BR>
Matt,<BR>
<BR>
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<BR>
<BR>
On Fri, 31 Oct 2003 ScottWelz@aol.com wrote:<BR>
<BR>
> Greetings Sven,<BR>
><BR>
> I've got COIN running on my Mac and had the same ru_time problem you describe<BR>
> here. The issue seems to be that Darwin is using either non-standard or<BR>
> older versions of standard libraries. When I proposed the change you describe<BR>
> below earlier, there was a reluctance (rightly so) to start making too many OS<BR>
> specific code exceptions. Now that Laci has pulled the time stuff out into<BR>
> CoinTime, maybe it would make it easier to handle this issue cleanly.<BR>
<BR>
Do either of you know if there is an OSX-specific compiler flag (similar<BR>
to _MSC_VER) that we could use to #ifdef the patch? I think that we'd be<BR>
a little happier about working around blatent compiler bugs if (a) we<BR>
could isolate them as in CoinTime and (b) we could implement them only<BR>
with respect to the compilers that need them.<BR>
<BR>
><BR>
> As far as your Sbb issue goes, I haven't had as much time as I would have<BR>
> liked to work on COIN stuff in the last few months, so my version of COIN is a<BR>
> few months old. I'll update and give it a try over the weekend to see if I can<BR>
> duplicate your problem.<BR>
><BR>
> Good to see another Mac user giving COIN a try!<BR>
><BR>
> Scott<BR>
><BR>
> In a message dated 10/30/03 6:05:29 AM, devries@ma.tum.de writes:<BR>
><BR>
><BR>
> > #include <ctime><BR>
> > #if defined(_MSC_VER)<BR>
> > // Turn off compiler warning about long names<BR>
> > # pragma warning(disable:4786)<BR>
> > #else<BR>
> > // for macosx<BR>
> > #include <sys/time.h><BR>
> > //<BR>
> > #include <sys/resource.h><BR>
> > #endif<BR>
> ><BR>
><BR>
><BR>
<BR>
--<BR>
Matthew Saltzman<BR>
<BR>
Clemson University Math Sciences<BR>
mjs AT clemson DOT edu<BR>
http://www.math.clemson.edu/~mjs<BR>
_______________________________________________<BR>
Coin-discuss mailing list<BR>
Coin-discuss@www-124.ibm.com<BR>
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>