summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-15 18:07:33 +0000
committerEric Engestrom <[email protected]>2019-03-29 16:54:08 +0000
commit8d9c2044a4f27b71ad854881771128bfcb2a6955 (patch)
tree50ecd8f6ac4ec14fe2334ece7fd957ca9c89c197 /src/egl
parentfea0caea2b2344c6c8d8110a8b31b1de17464483 (diff)
egl: hide entrypoints that shouldn't be exported when using glvnd
From GLVND author: > From a functional standpoint, exporting additional symbols doesn't > really matter, since libglvnd will load the vendor libraries with > RTLD_LOCAL. Suggested-by: Kyle Brenneman <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Acked-by: Kyle Brenneman <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglapi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index f99078febb3..588c6a5f1eb 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -83,6 +83,12 @@
*/
+#ifdef USE_LIBGLVND
+#define EGLAPI
+#undef PUBLIC
+#define PUBLIC
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>