summaryrefslogtreecommitdiffstats
path: root/src/egl/wayland
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-09-28 18:25:56 +0100
committerEmil Velikov <[email protected]>2017-10-02 16:29:38 +0100
commitebc51ff932083ab1bda58a4b66b3e35f3b593fa0 (patch)
tree25f07904326e83ad103d030cf030da40823ec441 /src/egl/wayland
parent0f8b0c04eba55b023e430bd2fec03000bd4c986e (diff)
wayland-egl: move WL_EGL_EXPORT declaration to where it's used
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Daniel Stone <[email protected]> Reviewed-by: Miguel A. Vico <[email protected]>
Diffstat (limited to 'src/egl/wayland')
-rw-r--r--src/egl/wayland/wayland-egl/wayland-egl-backend.h7
-rw-r--r--src/egl/wayland/wayland-egl/wayland-egl.c7
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,