Sorry if here is the wrong place to put this question, but for college we develop small programs in C using Solaris. Most of time is OK for us not to document nothing, until now.
Every time program is executed must print OS name.
Does Solaris has some predefined macros which I can include in my source.
For example
printf("OS: %s \n", __os__);
with result
SunOS 5.11
I found __'System'_'Version' , but it doesn' t work