From 9f23a3a1bff6c8af93e651273c9887bbf119f555 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 28 Jul 2005 00:11:10 +0000 Subject: Fix SPARC assembly for 64-bit - The test for whether or not we're building for 64-bit is '#ifdef __arch64__'. This appears to be correct on both Linux and Solaris. - The test for Solaris is now '#if defined(SVR4) || defined(__SVR4) || defined(__svr4__)'. GCC 3.4.0 has all three defined on Solaris 9. - Enables assembly language clip routines. - Fixes to make GLSL code build on Solaris. - Update gl_SPARC_asm.py. --- include/GL/glxext.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/GL') diff --git a/include/GL/glxext.h b/include/GL/glxext.h index 068f1c0667..ed38b489d8 100644 --- a/include/GL/glxext.h +++ b/include/GL/glxext.h @@ -331,7 +331,16 @@ typedef struct { } GLXBufferClobberEventSGIX; #endif -#if defined(__UNIXOS2__) || defined(__SOL64__) +#if defined(__sun__) +#include +#if defined(__STDC__) +#if defined(__arch64__) +typedef long int int64_t; +#else +typedef long long int int64_t; +#endif /* __arch64__ */ +#endif /* __STDC__ */ +#elif defined(__UNIXOS2__) || defined(__SOL64__) typedef long int int32_t; typedef long long int int64_t; #elif defined( __VMS ) -- cgit v1.2.3