ecore_wl2: recover missing extern "C" 11/261811/1 accepted/tizen/unified/20210728.090535 submit/tizen/20210727.032657
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 27 Jul 2021 03:10:15 +0000 (12:10 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 27 Jul 2021 03:10:15 +0000 (12:10 +0900)
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

index 9ec513d..6174f3e 100644 (file)
 # define WL_HIDE_DEPRECATED
 # include <wayland-server.h>
 
+# 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