From: Alona on
Hello All,

Are there any predefined macros to diffirenciate between Solaris on
SPARC and Solaris on Intel?

Thank you,
Alona
From: Chris Ridd on
On 2010-04-08 19:06:43 +0100, Alona said:

> Hello All,
>
> Are there any predefined macros to diffirenciate between Solaris on
> SPARC and Solaris on Intel?

Yes, use __sparc, __sparcv9, __i386 and __amd64. The C User's Guide has
a complete list.

--
Chris

From: Paul Floyd on
On Thu, 8 Apr 2010 11:06:43 -0700 (PDT), Alona <arossen(a)rogers.com> wrote:
> Hello All,
>
> Are there any predefined macros to diffirenciate between Solaris on
> SPARC and Solaris on Intel?

Hi

Your question isn't clear. I'm going to guess that you mean C/C++
preprocessor macro symbols, and not, say, StarOffice spreadsheet macros.

If you are using Sun Studio, then try "man CC" (or "man cc") and look
for the section starting with

The following values are predefined.

SPARC and x86 platforms:

If you are using GCC, then try "man gcc" (or "man g++") and look for
"foo.h"

A bientot
Paul
--
Paul Floyd http://paulf.free.fr