diff options
Diffstat (limited to 'src/mesa/glapi/extension_helper.py')
-rw-r--r-- | src/mesa/glapi/extension_helper.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/glapi/extension_helper.py b/src/mesa/glapi/extension_helper.py index 64f64a2fd8..3b6e2ce404 100644 --- a/src/mesa/glapi/extension_helper.py +++ b/src/mesa/glapi/extension_helper.py @@ -165,12 +165,14 @@ class PrintGlExtensionGlue(gl_XML.gl_print_base): print '# define NULL 0' print '#endif' print '' + print '#if defined(IN_DRI_DRIVER)' + print '' for f in api.functionIterateAll(): condition = condition_for_function(f, abi, 0) if len(condition): print '#if %s' % (string.join(condition, " || ")) - print 'static const char %s_names[] = ' % (f.name) + print 'static const char %s_names[] =' % (f.name) parameter_signature = '' for p in f.parameterIterator(): @@ -232,6 +234,15 @@ class PrintGlExtensionGlue(gl_XML.gl_print_base): print '#endif' print '' + print '#else /* IN_DRI_DRIVER */' + print '' + for category in keys: + print '#if defined(need_%s)' % (category) + print '#define %s_functions NULL' % (category) + print '#endif' + print '' + print '#endif /* IN_DRI_DRIVER */' + print '' return |