Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 1999 10:11:13 -0600
From:      Chris Costello <chris@holly.dyndns.org>
To:        Emmanuel DELOGET <pixel@DotCom.FR>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: #define question
Message-ID:  <19990127101113.B74511@holly.dyndns.org>
In-Reply-To: <199901271600.QAA03633@excalibur.oceanis.net>; from Emmanuel DELOGET on Wed, Jan 27, 1999 at 05:00:46PM %2B0100
References:  <199901271600.QAA03633@excalibur.oceanis.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 27, 1999, Emmanuel DELOGET put this into my mailbox:
> > Do we have a systemwide variable to use in the form like this:
> >
> > #ifdef __FREEBSD__
> > #include <whatever.h>
> > #endif
> 
> It seems that we do not 
> (try grep -i freebsd /usr/include/*{.h,/*.h}) 

   We do:

[chris@holly /usr2/home/chris] $ gcc -v -c foo.c
gcc version 2.7.2.1
 /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di38
6 -D__FreeBSD__=3 -D__FreeBSD_cc_version=300001 -D__unix__ -D__i386__ -D__FreeBS
D__=3 -D__FreeBSD_cc_version=300001 -D__unix -D__i386 -Asystem(unix) -Asystem(Fr
eeBSD) -Acpu(i386) -Amachine(i386) -D__ELF__ foo.c /var/tmp/ccE74937.i
GNU CPP version 2.7.2.1 (i386 FreeBSD)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
End of search list.
foo.c:2: warning: #warning "__FreeBSD__ is defined."
 /usr/libexec/cc1 /var/tmp/ccE74937.i -quiet -dumpbase foo.c -version -o /var/tm
p/ccE74937.s
GNU C version 2.7.2.1 (i386 FreeBSD) compiled by GNU C version 2.7.2.1.
 /usr/libexec/elf/as -v -o foo.o /var/tmp/ccE74937.s
GNU assembler version 2.9.1 (i386-unknown-freebsdelf), using BFD version 2.9.1


> 
> --
> pixel@dotcom.fr ------------------------------------------------
>                                                           DotCom
>                                          Communication Numerique 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 

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?19990127101113.B74511>