aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-05-30 14:13:44 +0200
committermarha <marha@users.sourceforge.net>2012-05-30 14:13:44 +0200
commitc587ef5a80c34082b4d7fb66a77bd39bea33aa03 (patch)
tree9695fc16b5bde265dd618d061b51cc143c16283c
parente48563d326cebfe5d7110b64b922120dd37ffe4c (diff)
downloadvcxsrv-c587ef5a80c34082b4d7fb66a77bd39bea33aa03.tar.gz
vcxsrv-c587ef5a80c34082b4d7fb66a77bd39bea33aa03.tar.bz2
vcxsrv-c587ef5a80c34082b4d7fb66a77bd39bea33aa03.zip
Only define INLINE when it is not defined yet
-rw-r--r--mesalib/src/mapi/glapi/gen/gl_table.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesalib/src/mapi/glapi/gen/gl_table.py b/mesalib/src/mapi/glapi/gen/gl_table.py
index 67ee5e813..3cbf23f1d 100644
--- a/mesalib/src/mapi/glapi/gen/gl_table.py
+++ b/mesalib/src/mapi/glapi/gen/gl_table.py
@@ -103,8 +103,10 @@ class PrintRemapTable(gl_XML.gl_print_base):
def printBody(self, api):
print '#ifdef _MSC_VER'
+ print '#ifndef INLINE'
print '#define INLINE __inline'
print '#endif'
+ print '#endif'
print '#define CALL_by_offset(disp, cast, offset, parameters) \\'
print ' (*(cast (GET_by_offset(disp, offset)))) parameters'
print '#define GET_by_offset(disp, offset) \\'