diff options
author | Eric Anholt <eric@anholt.net> | 2015-07-15 14:26:43 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-07-15 14:27:48 -0700 |
commit | 62861d12f9d3c1d3c61c7daa939239990b6a6c7f (patch) | |
tree | 14fd74934bbd44f318a0e35d486288da3d352d11 | |
parent | 8154c0efd3b98e6b602bf2a320360e6f9cf503b1 (diff) | |
download | libepoxy-62861d12f9d3c1d3c61c7daa939239990b6a6c7f.tar.gz |
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.
-rwxr-xr-x | src/gen_dispatch.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |