summaryrefslogtreecommitdiff
path: root/include/sltdl/sltdl_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sltdl/sltdl_api.h')
-rw-r--r--include/sltdl/sltdl_api.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/sltdl/sltdl_api.h b/include/sltdl/sltdl_api.h
new file mode 100644
index 0000000..0cc9093
--- /dev/null
+++ b/include/sltdl/sltdl_api.h
@@ -0,0 +1,35 @@
+#ifndef SLTDL_API_H
+#define SLTDL_API_H
+
+#include <limits.h>
+
+/* lt_export */
+#if defined(__dllexport)
+#define lt_export __dllexport
+#else
+#define lt_export
+#endif
+
+/* lt_import */
+#if defined(__dllimport)
+#define lt_import __dllimport
+#else
+#define lt_import
+#endif
+
+/* lt_api */
+#ifndef LT_APP
+#if defined (LT_EXPORT)
+#define lt_api lt_export
+#elif defined (LT_IMPORT)
+#define lt_api lt_import
+#elif defined (LT_STATIC)
+#define lt_api
+#else
+#define lt_api
+#endif
+#else
+#define lt_api
+#endif
+
+#endif