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.