summaryrefslogtreecommitdiff
path: root/include/apimagic/apimagic_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apimagic/apimagic_api.h')
-rw-r--r--include/apimagic/apimagic_api.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/apimagic/apimagic_api.h b/include/apimagic/apimagic_api.h
new file mode 100644
index 0000000..263e2ee
--- /dev/null
+++ b/include/apimagic/apimagic_api.h
@@ -0,0 +1,35 @@
+#ifndef APIMAGIC_API_H
+#define APIMAGIC_API_H
+
+#include <limits.h>
+
+/* amgc_export */
+#if defined(__dllexport)
+#define amgc_export __dllexport
+#else
+#define amgc_export
+#endif
+
+/* amgc_import */
+#if defined(__dllimport)
+#define amgc_import __dllimport
+#else
+#define amgc_import
+#endif
+
+/* amgc_api */
+#ifndef AMGC_APP
+#if defined (AMGC_BUILD)
+#define amgc_api amgc_export
+#elif defined (AMGC_SHARED)
+#define amgc_api amgc_import
+#elif defined (AMGC_STATIC)
+#define amgc_api
+#else
+#define amgc_api
+#endif
+#else
+#define amgc_api
+#endif
+
+#endif