wayland-egl: move WL_EGL_EXPORT declaration to where it's used

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Miguel A. Vico <mvicomoya@nvidia.com>
This commit is contained in:
Emil Velikov 2017-09-28 18:25:56 +01:00 committed by Emil Velikov
parent 0f8b0c04eb
commit ebc51ff932
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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,