diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-10-20 22:51:50 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-10-20 22:51:50 +0000 |
commit | f468dfde17e055f713bd8df14c34e2229c268255 (patch) | |
tree | b5d8d1c466603feedbc634dba29e894eeedf975b /src/glx/x11 | |
parent | adfd5510c0ec2100c37b80b1db1cff76f349a1af (diff) |
restore FASTCALL stuff
Diffstat (limited to 'src/glx/x11')
-rw-r--r-- | src/glx/x11/indirect.c | 6 | ||||
-rw-r--r-- | src/glx/x11/indirect.h | 6 | ||||
-rw-r--r-- | src/glx/x11/indirect_size.c | 6 | ||||
-rw-r--r-- | src/glx/x11/indirect_size.h | 6 |
4 files changed, 20 insertions, 4 deletions
diff --git a/src/glx/x11/indirect.c b/src/glx/x11/indirect.c index 35be63f36e..2a4db6578a 100644 --- a/src/glx/x11/indirect.c +++ b/src/glx/x11/indirect.c @@ -39,7 +39,11 @@ #define __GLX_PAD(n) (((n) + 3) & ~3) -#define FASTCALL +# if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) +# define FASTCALL __attribute__((fastcall)) +# else +# define FASTCALL +# endif # if defined(__GNUC__) # define NOINLINE __attribute__((noinline)) # else diff --git a/src/glx/x11/indirect.h b/src/glx/x11/indirect.h index fd5cbf1edb..1c45fa28a4 100644 --- a/src/glx/x11/indirect.h +++ b/src/glx/x11/indirect.h @@ -42,7 +42,11 @@ # else # define HIDDEN # endif -#define FASTCALL +# if defined(__i386__) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) +# define FASTCALL __attribute__((fastcall)) +# else +# define FASTCALL +# endif # if defined(__GNUC__) # define NOINLINE __attribute__((noinline)) # else diff --git a/src/glx/x11/indirect_size.c b/src/glx/x11/indirect_size.c index aa5ed752a5..79d57d55b6 100644 --- a/src/glx/x11/indirect_size.c +++ b/src/glx/x11/indirect_size.c @@ -35,7 +35,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"))) 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"))) |