Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 1999 10:51:29 -0600 (CST)
From:      Steve Price <sprice@hiwaay.net>
To:        Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Cc:        FreeBSD Hackers <hackers@FreeBSD.ORG>
Subject:   Re: #define question
Message-ID:  <Pine.OSF.4.02.9901271036270.4958-100000@fly.HiWAAY.net>
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:

# 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...

I know this will seem a little simple-minded but it has come
in handy a number of times.

bsd[~]$ (touch $$.c ; gcc -dM -E $$.c ; rm $$.c)
#define __FreeBSD__ 3 
#define __FreeBSD_cc_version 300001 
#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 
bsd[~]$ 

# thanks in advance,
# 
# ---
# Jeroen Ruigrok van der Werven          It's a Dance of Energy,
# asmodai(at)wxs.nl                 when the Mind goes Binary...
# Network/Security Specialist      <http://home.wxs.nl/~asmodai>;
# BSD & picoBSD: The Power to Serve     <http://www.freebsd.org>;


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.OSF.4.02.9901271036270.4958-100000>