Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 11:07:28 -0500 (EST)
From:      ADRIAN Filipi-Martin <adrian@ubergeeks.com>
To:        Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Cc:        FreeBSD Hackers <hackers@FreeBSD.ORG>
Subject:   Re: #define question
Message-ID:  <Pine.BSF.3.96.990129110409.18618B-100000@lorax.ubergeeks.com>
In-Reply-To: <XFMail.990127161951.asmodai@wxs.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Jan 1999, Jeroen Ruigrok/Asmodai wrote:

> Date: Wed, 27 Jan 1999 16:19:51 +0100 (CET)
> From: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
> To: FreeBSD Hackers <hackers@FreeBSD.ORG>
> Subject: #define question
> 
> Hi,
> 
> simple question I'm sure...
> 
> Do we have a systemwide variable to use in the form like this:
> 
> #ifdef __FREEBSD__
> #include <whatever.h>
> #endif
> 
> And with the variable I am referring to the __FREEBSD__ tag...

	To get the absolute minimum set of defines try the following:

: adrian@radon; gcc -E -dM - < /dev/null
#define __FreeBSD__ 4 
#define __FreeBSD_cc_version 400001 
#define __i386__ 1 
#define __i386 1 
#define __GNUC_MINOR__ 7 
#define i386 1 
#define __unix 1 
#define __unix__ 1 
#define __GNUC__ 2 
#define __ELF__ 1 
#define unix 1 
: adrian@radon; 

cheers,

	Adrian
--
[ adrian@ubergeeks.com -- Ubergeeks Consulting -- http://www.ubergeeks.com/ ]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990129110409.18618B-100000>