summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_cocoa/ecore_cocoa_api.h')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_api.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_api.h b/src/lib/ecore_cocoa/ecore_cocoa_api.h
new file mode 100644
index 0000000000..7b09a3bd73
--- /dev/null
+++ b/src/lib/ecore_cocoa/ecore_cocoa_api.h
@@ -0,0 +1,34 @@
+#ifndef _EFL_ECORE_COCOA_API_H
+#define _EFL_ECORE_COCOA_API_H
+
+#ifdef ECORE_COCOA_API
+#error ECORE_COCOA_API should not be already defined
+#endif
+
+#ifdef _WIN32
+# ifndef ECORE_COCOA_STATIC
+# ifdef ECORE_COCOA_BUILD
+# define ECORE_COCOA_API __declspec(dllexport)
+# else
+# define ECORE_COCOA_API __declspec(dllimport)
+# endif
+# else
+# define ECORE_COCOA_API
+# endif
+# define ECORE_COCOA_API_WEAK
+#else
+# ifdef __GNUC__
+# if __GNUC__ >= 4
+# define ECORE_COCOA_API __attribute__ ((visibility("default")))
+# define ECORE_COCOA_API_WEAK __attribute__ ((weak))
+# else
+# define ECORE_COCOA_API
+# define ECORE_COCOA_API_WEAK
+# endif
+# else
+# define ECORE_COCOA_API
+# define ECORE_COCOA_API_WEAK
+# endif
+#endif
+
+#endif