diff options
Diffstat (limited to 'src/mesa/x86')
-rw-r--r-- | src/mesa/x86/assyntax.h | 12 | ||||
-rw-r--r-- | src/mesa/x86/gen_matypes.c | 4 | ||||
-rw-r--r-- | src/mesa/x86/glapi_x86.S | 10 |
3 files changed, 11 insertions, 15 deletions
diff --git a/src/mesa/x86/assyntax.h b/src/mesa/x86/assyntax.h index f89cc6c575a..4b7317b0805 100644 --- a/src/mesa/x86/assyntax.h +++ b/src/mesa/x86/assyntax.h @@ -1730,11 +1730,17 @@ SECTION _DATA public align=16 class=DATA use32 flat #define TLBL(a) CONCAT(a,$) #endif -/* hidden symbol visibility support */ +/* Hidden symbol visibility support. + * If we build with gcc's -fvisibility=hidden flag, we'll need to change + * the symbol visibility mode to 'default'. + */ #if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) -#define HIDDEN(a) .hidden a +# define HIDDEN(x) .hidden x +#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 +# pragma GCC visibility push(default) +# define HIDDEN(x) .hidden x #else -#define HIDDEN(a) +# define HIDDEN(x) #endif #endif /* __ASSYNTAX_H__ */ diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c index 30642e4b12d..d5cee5347ce 100644 --- a/src/mesa/x86/gen_matypes.c +++ b/src/mesa/x86/gen_matypes.c @@ -61,7 +61,7 @@ do { \ printf( "\n" ); \ } while (0) -#if defined(__BEOS__) +#if defined(__BEOS__) || defined(_LP64) #define OFFSET( s, t, m ) \ printf( "#define %s\t%ld\n", s, offsetof( t, m ) ); #else @@ -69,7 +69,7 @@ do { \ printf( "#define %s\t%d\n", s, offsetof( t, m ) ); #endif -#if defined(__BEOS__) +#if defined(__BEOS__) || defined(_LP64) #define SIZEOF( s, t ) \ printf( "#define %s\t%ld\n", s, sizeof(t) ); #else diff --git a/src/mesa/x86/glapi_x86.S b/src/mesa/x86/glapi_x86.S index c0a971bd53b..6e8f32e373d 100644 --- a/src/mesa/x86/glapi_x86.S +++ b/src/mesa/x86/glapi_x86.S @@ -29,16 +29,6 @@ #include "assyntax.h" #include "glapioffsets.h" -/* If we build with gcc's -fvisibility=hidden flag, we'll need to change -* the symbol visibility mode to 'default'. -*/ -#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 -# pragma GCC visibility push(default) -# define HIDDEN(x) .hidden x -#else -# define HIDDEN(x) -#endif - #ifndef __WIN32__ #if defined(STDCALL_API) |