summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glsparcasm.py
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-12-01 22:40:26 +0000
committerBrian Paul <[email protected]>2003-12-01 22:40:26 +0000
commit9a90cd40c6e510484e018afd087a4c239b616ee0 (patch)
treed21d03c67264a1b457141beadd8f419ca521d848 /src/mesa/glapi/glsparcasm.py
parent06cfb4456455afad149955dbaa853b9f4f18a066 (diff)
fix __sparc_v9__ test to exclude linux (bug 852204)
Diffstat (limited to 'src/mesa/glapi/glsparcasm.py')
-rw-r--r--src/mesa/glapi/glsparcasm.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/glapi/glsparcasm.py b/src/mesa/glapi/glsparcasm.py
index 7f624023c02..35d90f13330 100644
--- a/src/mesa/glapi/glsparcasm.py
+++ b/src/mesa/glapi/glsparcasm.py
@@ -1,11 +1,9 @@
#!/usr/bin/env python
-# $Id: glsparcasm.py,v 1.7 2002/01/03 16:33:59 brianp Exp $
-
# Mesa 3-D graphics library
-# Version: 4.1
+# Version: 5.1
#
-# Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+# Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
@@ -111,7 +109,7 @@ def EmitFunction(name, returnType, argTypeList, argNameList, alias, offset):
print '.globl gl%s' % (name)
print '.type gl%s,#function' % (name)
print 'gl%s:' % (name)
- print '#ifdef __sparc_v9__'
+ print '#if defined(__sparc_v9__) && !defined(__linux__)'
print '\tsethi\t%hi(0x00000000), %g2'
print '\tsethi\t%hi(0x00000000), %g1'
print '\tor\t%g2, %lo(0x00000000), %g2'