Quantcast
Channel: User mikyll98 - Stack Overflow
Viewing all articles
Browse latest Browse all 102

Answer by mikyll98 for Any way to detect SparcWorks on SunOS?

$
0
0

You could try to use both these macros:

  • __SUNPRO_CC (for C++) or __SUNPRO_C (for C), which are macros typically defined by the SparcWorks compiler indicating the usage of Sun C/C++ compiler;
  • __sun, which is a macro defined by the SunOS platform, indicating the usage of the Sun compiler.
#if defined(__SUNPRO_CC) && defined(__sun)// Specific code for SparcWorks compiler on SunOS#else// Code for other compilers or platforms#endif

Maybe useful reference: Sun™ Studio 12: C++ FAQ


Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>