>>>>> "ulf" == ulf  <iso-8859-1> writes:

ulf> In theory the inline assembler should be turned off automatically for
ulf> Solaris x86, but unfortunately last time I asked which #ifdef should
ulf> be used to detect that platform, there were no replies.

This works in both SunPRO C and in gcc (and it's various flavors):

#if defined(__SVR4) && defined(__sun) && defined(__i386)
/* I'm Solaris running on an Intel-alike */
#endif
#if defined(__SVR4) && defined(__sun) && defined(__sparc)
/* I'm Solaris running on a SPARC */
#endif
#if defined(__SVR4) && defined(__sun) && defined(__ppc)
/* I'm Solaris running on a PowerPC */
#endif

Other useful defines (Only in SunPRO C, as far as I know):

__SUNPROC (cc version number: 0x420 for 4.2.0, 0x500 for 5.0.0, etc.)
__`uname -s`_`uname -r | tr . _` (e.g. __SunOS_5_5_1)

-- 
Carson Gaspar -- [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
http://www.cs.columbia.edu/~carson/home.html
Queen Trapped in a Butch Body
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to