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 Humphries
Subject: Re: Distinguish between platforms with defs
Date: Mon, 31 Oct 2005 11:02:13 -0500
User-agent: Mutt/1.5.11

+------------------------------------------------------------------------------
| On Monday, Oct 31, 2005 at 10:38:32AM +0100, Chris B. Vetter wrote:
| 
| To: discuss@gnustep.org
| Cc: 
| From: "Chris B. Vetter" <chris.vetter@gmail.com>
| Date: Mon, 31 Oct 2005 10:38:32 +0100
| Subject: Re: Distinguish between platforms with defs
| 
| 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>

freebsd ;)

| 
| Now that wouldn't be very helpful, would it?
| 
| --
| Chris
| 
| 
| _______________________________________________
| Discuss-gnustep mailing list
| Discuss-gnustep@gnu.org
| http://lists.gnu.org/mailman/listinfo/discuss-gnustep

-- 




reply via email to

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