summaryrefslogtreecommitdiff
path: root/src/glx/x11/indirect_size.h
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/glx/x11/indirect_size.h
parentadfd5510c0ec2100c37b80b1db1cff76f349a1af (diff)
restore FASTCALL stuff
Diffstat (limited to 'src/glx/x11/indirect_size.h')
-rw-r--r--src/glx/x11/indirect_size.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glx/x11/indirect_size.h b/src/glx/x11/indirect_size.h
index c3f353dbf4..9ba0bd6907 100644
--- a/src/glx/x11/indirect_size.h
+++ b/src/glx/x11/indirect_size.h
@@ -42,7 +42,11 @@
# define PURE
# endif
-#define FASTCALL
+# if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+# define FASTCALL __attribute__((fastcall))
+# else
+# define FASTCALL
+# endif
# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
# define INTERNAL __attribute__((visibility("internal")))