wayland-egl: move WL_EGL_EXPORT declaration to where it's used
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 28 Sep 2017 17:25:56 +0000 (18:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Oct 2017 15:29:38 +0000 (16:29 +0100)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Miguel A. Vico <mvicomoya@nvidia.com>
src/egl/wayland/wayland-egl/wayland-egl-backend.h
src/egl/wayland/wayland-egl/wayland-egl.c

index c7b79ec839a2f06bbd1157025cb2892da9ac5b5a..82f025cb5b791e9bf4fe76b7ac5b3d2f57d8ae70 100644 (file)
 #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
index e5a26ffad2761b5a41be2f8981ab1c1968f9fb26..4501c6dc9564308539c8daa04dc6112a85940084 100644 (file)
 #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,