linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Kratzer <kratzers@pa.net>
To: Bryan Christ <bryan.christ@hp.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: standard OS defines
Date: Wed, 22 Aug 2007 15:24:41 -0400	[thread overview]
Message-ID: <200708221524.41782.kratzers@pa.net> (raw)
In-Reply-To: <46CC81E9.1080904@hp.com>

On Wednesday 22 August 2007 14:35:21 Bryan Christ wrote:
> does anyone know where i can find a list of standardized OS defines?
> i've come across the list below, but i haven't found an authoritative
> resource convince me these are standard/correct.  even if they are i'm
> sure what i've found is a just a subset of a larger list--but i don't
> know where to look.
>
> __CYGWIN__
> __NetBSD__
> __OpenBSD__
> __linux__
> __sun__

Take a look at:
info cpp "System-specific Predefined Macros"

A good list is here:
http://predef.sourceforge.net/preos.html

> also, is there a tool that like getconf that i can use to pipe these
> defines into gcc at compile time?

You can define macros on the command line by passing the -D flag to gcc.

> thanks in advance,
> bryan
> -

  reply	other threads:[~2007-08-22 19:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-22 18:35 standard OS defines Bryan Christ
2007-08-22 19:24 ` Stephen Kratzer [this message]
2007-08-22 19:28   ` Bryan Christ
2007-08-22 19:47     ` Stephen Kratzer
2007-08-22 19:48       ` Bryan Christ
2007-08-22 20:01       ` Stephen Kratzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200708221524.41782.kratzers@pa.net \
    --to=kratzers@pa.net \
    --cc=bryan.christ@hp.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).