Thread (31 messages) flat view 31 messages, 5 authors, 2016-06-15

Re: [PATCH] git-compat-util.h: use apparently more common __sgi macro to detect SGI IRIX

From: Tor Arntsen <hidden>
Date: 2016-06-15 22:48:54

On Wed, Jun 2, 2010 at 03:55, Brandon Casey [off-list ref] wrote:
From: Gary V. Vaughan <redacted>

IRIX 6.5.26m does not define the 'sgi' macro, but it does define an '__sgi'
macro.  Since later IRIX versions (6.5.29m) define both macros, and since
an underscore prefixed macro is preferred anyway, use '__sgi' to detect
compilation on SGI IRIX.
Yes, __sgi is the one to use. It's been there on all the SGI systems
I've used, at least back to IRIX 5.3 (I don't recall for sure about
4.0.5 but my guess is yes). 'sgi' is often there too, also on IRIX 6.2
(with the old MIPS compiler), but on both 6.2 and 6.5 it goes away if
you use certain other options, e.g. -ansi. __sgi, on the other hand,
is always there - it doesn't depend on any other compiler options.

-Tor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help