From 62861d12f9d3c1d3c61c7daa939239990b6a6c7f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 15 Jul 2015 14:26:43 -0700 Subject: Emit APIENTRY for typedefs that use it. The XML uses a node for where the string should be. This should fix segfaults using GL_ARB_debug_output on windows. Fixes #46. --- src/gen_dispatch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py index 326fdbc..b973415 100755 --- a/src/gen_dispatch.py +++ b/src/gen_dispatch.py @@ -218,6 +218,8 @@ class Generator(object): self.typedefs += t.text for child in t: + if child.tag == 'apientry': + self.typedefs += 'APIENTRY' if child.text: self.typedefs += child.text if child.tail: -- cgit v1.2.1