summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-20 22:51:50 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-20 22:51:50 +0000
commitf468dfde17e055f713bd8df14c34e2229c268255 (patch)
treeb5d8d1c466603feedbc634dba29e894eeedf975b /src/mesa/glapi
parentadfd5510c0ec2100c37b80b1db1cff76f349a1af (diff)
restore FASTCALL stuff
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/gl_XML.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/glapi/gl_XML.py b/src/mesa/glapi/gl_XML.py
index 0cea268777..11b23b7a86 100644
--- a/src/mesa/glapi/gl_XML.py
+++ b/src/mesa/glapi/gl_XML.py
@@ -194,9 +194,11 @@ class gl_print_base:
"""
self.undef_list.append("FASTCALL")
- # I've removed the previous code for __attribute__((fastcall))
- # because it breaks server-side GLX. (BrianP)
- print "#define FASTCALL"
+ print """# if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+# define FASTCALL __attribute__((fastcall))
+# else
+# define FASTCALL
+# endif"""
return