From 17a81ff7c97b9658f5e250911ed80dfb39f79bec Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 2 Mar 2009 17:29:30 +0000 Subject: [PATCH] qcommon: Add idsparc and set when __sparc__ && !C_ONLY Signed-off-by: David S. Miller --- code/qcommon/q_platform.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index 1152fdf4..ed5d9070 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define id386 0 #define idppc 0 #define idppc_altivec 0 +#define idsparc 0 #else @@ -58,6 +59,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define idppc_altivec 0 #endif +#if defined(__sparc__) && !defined(C_ONLY) +#define idsparc 1 +#else +#define idsparc 0 +#endif + #endif #ifndef __ASM_I386__ // don't include the C bits if included from qasm.h