discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distinguish between platforms with defs


From: Chris B. Vetter
Subject: Re: Distinguish between platforms with defs
Date: Mon, 31 Oct 2005 10:38:32 +0100

On 10/30/05, Adam Fedor <fedor@doc.com> wrote:
> On Oct 29, 2005, at 3:04 PM, Andreas Höschler wrote:
> > I know about __APPLE__ and WIN32, but how can I say that I am on a
> > Solaris machine?
> You can run this script to see what gcc defines on various platforms.
[...]
> #!/bin/sh
> for def in `gcc -E -v - </dev/null 2>&1 | grep [-]$`; do
>    case $def in -D*) echo $def;; esac
> done

Interesting....

  chuck:cbv :0> sh check.sh
  -D_LONGLONG
  chuck:cbv :0>

Now that wouldn't be very helpful, would it?

--
Chris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]