egl: hide entrypoints that shouldn't be exported when using glvnd
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 15 Nov 2018 18:07:33 +0000 (18:07 +0000)
committerEric Engestrom <eric@engestrom.ch>
Fri, 29 Mar 2019 16:54:08 +0000 (16:54 +0000)
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 <kbrenneman@nvidia.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Kyle Brenneman <kbrenneman@nvidia.com>
src/egl/main/eglapi.c

index f99078febb3958f13c5e97127fb8cbf2e4eed4da..588c6a5f1eb9eb99a411c5e4cc7bbac6c6569b8a 100644 (file)
  */
 
 
+#ifdef USE_LIBGLVND
+#define EGLAPI
+#undef PUBLIC
+#define PUBLIC
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>