From: Shinwoo Kim Date: Tue, 27 Jul 2021 03:10:15 +0000 (+0900) Subject: ecore_wl2: recover missing extern "C" X-Git-Tag: submit/tizen/20210727.032657^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93224f80510755e3559c077d18621e391ea852c2;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 9ec513db29..6174f3e31d 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