hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b5ae1b84f9c1f2d4e58c34d5688507595e446355

commit b5ae1b84f9c1f2d4e58c34d5688507595e446355
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Sat Aug 22 16:09:25 2015 +0900

    ethum: fix compilation on Windows due to missing visibility setting.
---
 src/lib/ethumb/Ethumb_Plugin.h | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/src/lib/ethumb/Ethumb_Plugin.h b/src/lib/ethumb/Ethumb_Plugin.h
index 483399d..3dd7c57 100644
--- a/src/lib/ethumb/Ethumb_Plugin.h
+++ b/src/lib/ethumb/Ethumb_Plugin.h
@@ -5,6 +5,36 @@
 #include <Ecore_Evas.h>
 #include <Ethumb.h>
 
+#ifdef EAPI
+# undef EAPI
+#endif
+
+#ifdef _WIN32
+# ifdef EFL_ETHUMB_BUILD
+#  ifdef DLL_EXPORT
+#   define EAPI __declspec(dllexport)
+#  else
+#   define EAPI
+#  endif /* ! DLL_EXPORT */
+# else
+#  define EAPI __declspec(dllimport)
+# endif /* ! EFL_ETHUMB_BUILD */
+#else
+# ifdef __GNUC__
+#  if __GNUC__ >= 4
+#   define EAPI __attribute__ ((visibility("default")))
+#  else
+#   define EAPI
+#  endif
+# else
+#  define EAPI
+# endif
+#endif /* ! _WIN32 */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct _Ethumb_Plugin Ethumb_Plugin;
 
 struct _Ethumb_Plugin
@@ -30,4 +60,11 @@ EAPI void ethumb_finished_callback_call(Ethumb *e, int 
result);
 EAPI Evas * ethumb_evas_get(const Ethumb *e);
 EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e);
 
+#ifdef __cplusplus
+}
+#endif
+
+#undef EAPI
+#define EAPI
+
 #endif /* _ETHUMB_PLUGIN_H_ */

-- 


Reply via email to