glapi: Do not use .type pseudo-op on Mac OS X.
The .type directive is an unknown pseudo-op on Mac OS X.
This commit is contained in:
@@ -73,7 +73,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
|
||||
print ''
|
||||
print '#define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX))'
|
||||
print ''
|
||||
print '#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__)'
|
||||
print '#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__)'
|
||||
print '#define GLOBL_FN(x) GLOBL x ; .type x, function'
|
||||
print '#else'
|
||||
print '#define GLOBL_FN(x) GLOBL x'
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
#define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX))
|
||||
|
||||
#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__)
|
||||
#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__)
|
||||
#define GLOBL_FN(x) GLOBL x ; .type x, function
|
||||
#else
|
||||
#define GLOBL_FN(x) GLOBL x
|
||||
|
||||
Reference in New Issue
Block a user