aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/detail/ClassExport.hpp
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-09-04 19:16:40 +0200
committer GitHub <noreply@github.com>2023-09-04 19:16:40 +0200
commit238ab9dfaa8ec7a48142154d227605ae367d53d1 (patch)
tree9833fa669651e04dea81b9b2b5875a8d21ea938e /include/openvic-dataloader/detail/ClassExport.hpp
parent027828532837673a3631c8a9a8128f9b89a9db43 (diff)
parenta705b0223664f915d8bb00d4f89e05838da3e4bc (diff)
Merge pull request #11 from OpenVicProject/fix/more-csv-problems
Diffstat (limited to 'include/openvic-dataloader/detail/ClassExport.hpp')
-rw-r--r--include/openvic-dataloader/detail/ClassExport.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/openvic-dataloader/detail/ClassExport.hpp b/include/openvic-dataloader/detail/ClassExport.hpp
new file mode 100644
index 0000000..27098ed
--- /dev/null
+++ b/include/openvic-dataloader/detail/ClassExport.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#ifdef _MSC_VER
+#define OVDL_EXPORT __declspec(dllexport)
+#elif defined(__GNUC__)
+#define OVDL_EXPORT __attribute__((visibility("default")))
+#else
+#define OVDL_EXPORT
+#endif \ No newline at end of file