NetBSD-Users archive

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

Re: gcc predefined labels

On Mon, Nov 17, 2008 at 04:43:28PM -0600, David Dudley wrote:
> Does the gcc compiler predefine a label like __netbsd__ to let you know
> what system you're running on?

Yes.  __NetBSD__.

> How do you list the predefined labels?

gcc -dM -E -</dev/null

Quentin Garnier - -
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpOaZ1kyQed6.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index