[Mesa-dev] [PATCH 6/7] wayland-egl: move WL_EGL_EXPORT declaration to where it's used

Emil Velikov emil.l.velikov at gmail.com
Fri Sep 29 12:14:41 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Cc: Daniel Stone <daniels at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/egl/wayland/wayland-egl/wayland-egl-backend.h | 7 -------
 src/egl/wayland/wayland-egl/wayland-egl.c         | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/egl/wayland/wayland-egl/wayland-egl-backend.h b/src/egl/wayland/wayland-egl/wayland-egl-backend.h
index c7b79ec839a..82f025cb5b7 100644
--- a/src/egl/wayland/wayland-egl/wayland-egl-backend.h
+++ b/src/egl/wayland/wayland-egl/wayland-egl-backend.h
@@ -28,13 +28,6 @@
 #ifndef _WAYLAND_EGL_PRIV_H
 #define _WAYLAND_EGL_PRIV_H
 
-/* GCC visibility */
-#if defined(__GNUC__)
-#define WL_EGL_EXPORT __attribute__ ((visibility("default")))
-#else
-#define WL_EGL_EXPORT
-#endif
-
 #include <stdint.h>
 
 #ifdef  __cplusplus
diff --git a/src/egl/wayland/wayland-egl/wayland-egl.c b/src/egl/wayland/wayland-egl/wayland-egl.c
index e5a26ffad27..4501c6dc956 100644
--- a/src/egl/wayland/wayland-egl/wayland-egl.c
+++ b/src/egl/wayland/wayland-egl/wayland-egl.c
@@ -33,6 +33,13 @@
 #include "wayland-egl.h"
 #include "wayland-egl-backend.h"
 
+/* GCC visibility */
+#if defined(__GNUC__)
+#define WL_EGL_EXPORT __attribute__ ((visibility("default")))
+#else
+#define WL_EGL_EXPORT
+#endif
+
 WL_EGL_EXPORT void
 wl_egl_window_resize(struct wl_egl_window *egl_window,
 		     int width, int height,
-- 
2.14.1



More information about the mesa-dev mailing list