<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Oops...I hit the send button too early.&nbsp;  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).&nbsp;  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>
&gt; Greetings Sven,<BR>
&gt;<BR>
&gt; I've got COIN running on my Mac and had the same ru_time problem you describe<BR>
&gt; here.   The issue seems to be that Darwin is using either non-standard or<BR>
&gt; older versions of standard libraries.   When I proposed the change you describe<BR>
&gt; below earlier, there was a reluctance (rightly so) to start making too many OS<BR>
&gt; specific code exceptions.   Now that Laci has pulled the time stuff out into<BR>
&gt; 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>
&gt;<BR>
&gt; As far as your Sbb issue goes, I haven't had as much time as I would have<BR>
&gt; liked to work on COIN stuff in the last few months, so my version of COIN is a<BR>
&gt; few months old.   I'll update and give it a try over the weekend to see if I can<BR>
&gt; duplicate your problem.<BR>
&gt;<BR>
&gt; Good to see another Mac user giving COIN a try!<BR>
&gt;<BR>
&gt; Scott<BR>
&gt;<BR>
&gt; In a message dated 10/30/03 6:05:29 AM, devries@ma.tum.de writes:<BR>
&gt;<BR>
&gt;<BR>
&gt; &gt; #include &lt;ctime&gt;<BR>
&gt; &gt; #if defined(_MSC_VER)<BR>
&gt; &gt; // Turn off compiler warning about long names<BR>
&gt; &gt; #  pragma warning(disable:4786)<BR>
&gt; &gt; #else<BR>
&gt; &gt; // for macosx<BR>
&gt; &gt; #include &lt;sys/time.h&gt;<BR>
&gt; &gt; //<BR>
&gt; &gt; #include &lt;sys/resource.h&gt;<BR>
&gt; &gt; #endif<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt;<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>