This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Determining OS
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Arbol One <arbolone at hotmail dot ca>
- Cc: Kevin Ingwersen <ingwie2000 at googlemail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 5 Apr 2014 11:27:32 +0100
- Subject: Re: Determining OS
- Authentication-results: sourceware.org; auth=none
- References: <7657179D-0229-4088-9252-51D2B123091F at googlemail dot com> <CAH6eHdSq2tRwF_ZD6Wcm=xDQCpnTBpDXcyv2c0ERv+Fapx=mVQ at mail dot gmail dot com> <BLU177-W49A9F3C9DD53EB467F3214BA6E0 at phx dot gbl>
On 5 April 2014 11:15, Arbol One wrote:
> OK, lets see, hummm... How can I, using the resources provided by GCC, find
> out which OS my program is running under?
Apart from http://gcc.gnu.org/onlinedocs/cpp/System-specific-Predefined-Macros.html
none of the necessary resources are provided by GCC, they are provided
by the native platform API.
> I hope this version of the question brings the GCCness out of it.
No, this is still not a question about GCC.
"How do I write a C function to do X?" is a general question about C
programming, it is not specific to GCC.
Maybe http://sourceforge.net/p/predef/wiki/Home/ would help.