summaryrefslogtreecommitdiffstats
path: root/src/mesa/sparc/sparc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/sparc/sparc.c')
-rw-r--r--src/mesa/sparc/sparc.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/sparc/sparc.c b/src/mesa/sparc/sparc.c
index 043b8fb31d8..1eb4b922e5a 100644
--- a/src/mesa/sparc/sparc.c
+++ b/src/mesa/sparc/sparc.c
@@ -1,5 +1,3 @@
-/* $Id: sparc.c,v 1.9 2003/02/08 15:43:39 brianp Exp $ */
-
/*
* Mesa 3-D graphics library
* Version: 5.1
@@ -29,6 +27,8 @@
*/
+#ifdef USE_SPARC_ASM
+
#include "context.h"
#include "math/m_xform.h"
#include "tnl/t_context.h"
@@ -151,8 +151,12 @@ extern unsigned int _mesa_sparc_glapi_begin;
extern unsigned int _mesa_sparc_glapi_end;
extern void __glapi_sparc_icache_flush(unsigned int *);
+#endif /* USE_SPARC_ASM */
+
+
void _mesa_init_sparc_glapi_relocs(void)
{
+#ifdef USE_SPARC_ASM
unsigned int *insn_ptr, *end_ptr;
unsigned long disp_addr;
@@ -176,4 +180,8 @@ void _mesa_init_sparc_glapi_relocs(void)
insn_ptr += 5;
#endif
}
+#endif /* USE_SPARC_ASM */
}
+
+
+