summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-27 00:09:07 +0000
committermidipix <writeonce@midipix.org>2019-10-27 00:09:07 +0000
commitb3258d8df820600ad2648a890c4efba300be1de4 (patch)
treefe99b5694896c74f34664daae5e2474d5c6e45fe
parent38579a56f64b39aca62467547763e25dc4a07256 (diff)
downloadsltdl-b3258d8df820600ad2648a890c4efba300be1de4.tar.bz2
sltdl-b3258d8df820600ad2648a890c4efba300be1de4.tar.xz
created api headers.
-rw-r--r--include/sltdl/sltdl.h14
-rw-r--r--include/sltdl/sltdl_api.h35
-rw-r--r--project/headers.mk2
3 files changed, 51 insertions, 0 deletions
diff --git a/include/sltdl/sltdl.h b/include/sltdl/sltdl.h
new file mode 100644
index 0000000..9d3aaac
--- /dev/null
+++ b/include/sltdl/sltdl.h
@@ -0,0 +1,14 @@
+#ifndef SLTDL_H
+#define SLTDL_H
+
+#include "sltdl_api.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
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
diff --git a/project/headers.mk b/project/headers.mk
index 9d50ee3..d137b03 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -1,4 +1,6 @@
API_HEADERS = \
+ $(PROJECT_DIR)/include/$(PACKAGE)/sltdl.h \
+ $(PROJECT_DIR)/include/$(PACKAGE)/sltdl_api.h \
INTERNAL_HEADERS = \