Browse Source

glapi: Do not use .type pseudo-op on Mac OS X.

The .type directive is an unknown pseudo-op on Mac OS X.
tags/mesa-7.7-2
Vinson Lee 15 years ago
parent
commit
bc75ec0f38
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/mesa/glapi/gl_x86_asm.py
  2. 1
    1
      src/mesa/x86/glapi_x86.S

+ 1
- 1
src/mesa/glapi/gl_x86_asm.py View File

@@ -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'

+ 1
- 1
src/mesa/x86/glapi_x86.S View File

@@ -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

Loading…
Cancel
Save