Re: AW: AW: AW: Re: tinterval - operator problems on AIX - Mailing list pgsql-hackers

From Pete Forman
Subject Re: AW: AW: AW: Re: tinterval - operator problems on AIX
Date
Msg-id 14950.54002.382616.687730@kryten.bedford.waii.com
Whole thread Raw
In response to AW: AW: AW: Re: tinterval - operator problems on AIX  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
Responses Re: AW: AW: AW: Re: tinterval - operator problems on AIX  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Zeugswetter Andreas SB writes:> The down side is, that I did not do a configure test, and did not> incooperate IRIX,
sinceI didn't know what define to check.> > The correct thing to do instead of the #if defined (_AIX) would be> to use
somethinglike #ifdef NO_NEGATIVE_MKTIME and set that with a> configure.
 

I agree that configure is the way to go.  What if someone has
installed a third party library to provide a better mktime() and
localtime()?

But to answer your question, #if defined (__sgi) is a good test for
IRIX, at least with the native compiler.  I can't speak for gcc.
-- 
Pete Forman                 -./\.- Disclaimer: This post is originated
WesternGeco                   -./\.-  by myself and does not represent
pete.forman@westerngeco.com     -./\.-  opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef  -./\.-  Hughes or their divisions.


pgsql-hackers by date:

Previous
From: "Felipe Diaz Cardona"
Date:
Subject: getCrossReference
Next
From: mlw
Date:
Subject: What's with update, 7.0.2?