about summary refs log tree commit diff stats
path: root/src/miasm/runtime/export.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/miasm/runtime/export.h')
-rw-r--r--src/miasm/runtime/export.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/miasm/runtime/export.h b/src/miasm/runtime/export.h
new file mode 100644
index 00000000..f21a83a8
--- /dev/null
+++ b/src/miasm/runtime/export.h
@@ -0,0 +1,10 @@
+#ifndef MIASM_RT_EXPORT_H
+#define MIASM_RT_EXPORT_H
+
+#ifdef _WIN32
+#define _MIASM_EXPORT __declspec(dllexport)
+#else
+#define _MIASM_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif