From 93224f80510755e3559c077d18621e391ea852c2 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Tue, 27 Jul 2021 12:10:15 +0900 Subject: [PATCH] ecore_wl2: recover missing extern "C" There is a build error on cpp project because following commit remove extern "C". 8548d4d ecore_wl2: Move managed APIs to public header Change-Id: Ic508303c317445194f22399fd77a7dc1efaa366c --- src/lib/ecore_wl2/Ecore_Wl2.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 9ec513d..6174f3e 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -11,6 +11,24 @@ # define WL_HIDE_DEPRECATED # include +# ifdef EAPI +# undef EAPI +# endif + +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define EAPI __attribute__ ((visibility("default"))) +# else +# define EAPI +# endif +# else +# define EAPI +# endif + +# ifdef __cplusplus +extern "C" { +# endif + #define ECORE_WL2_SURFACE_INTERFACE_VERSION 1 /** @internal */ @@ -2245,4 +2263,11 @@ EAPI Eina_Bool ecore_wl2_window_pointer_warp(Ecore_Wl2_Window *win, int x, int y EAPI void ecore_wl2_sync(void); // +# undef EAPI +# define EAPI + +# ifdef __cplusplus +} +# endif + #endif -- 2.7.4