diff options
author | Emil Velikov <[email protected]> | 2019-01-25 16:25:43 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-01-25 13:04:04 -0800 |
commit | 3b6aaab7e9f211197b79368dabcec0fb1c92b24c (patch) | |
tree | 57aacc9fa5dbd7aeac7a1e0c5e0e33c91cfafb22 /src | |
parent | 4aa64940c63408b7dc641e9d2756ac4c3f512676 (diff) |
mapi: print function declarations for shared glapi
Earlier commit aimed to remove unneeded function declarations. Namely
OpenGL entrypoints which are not applicable for OpenGLES*
Although it did not consider the shared glapi which needs all,
including hidden ones. Resulting in warning/errors like the following
../build/src/mapi/shared-glapi/glapi_mapi_tmp.h:26014:15:
error: no previous prototype for ‘shared_dispatch_stub_1414’ [-Werror=missing-prototypes]
This patch addressed that.
Cc: Erik Faye-Lund <[email protected]>
Reported-by: Eric Anholt <[email protected]>
Fixes: 6148cce388f ("mapi: drop unneeded gl_dispatch_stub declarations")
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/mapi_abi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/mapi_abi.py b/src/mapi/mapi_abi.py index 4293cc0c6c2..8b436638d2b 100644 --- a/src/mapi/mapi_abi.py +++ b/src/mapi/mapi_abi.py @@ -265,7 +265,7 @@ class ABIPrinter(object): if not self.need_entry_point(ent): continue export = self.api_call if not ent.hidden else '' - if not ent.hidden: + if not ent.hidden or not self.lib_need_non_hidden_entries: decls.append(self._c_decl(ent, prefix, True, export) + ';') return "\n".join(decls) |