aboutsummaryrefslogtreecommitdiffstats
path: root/include/Api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Api.h')
-rw-r--r--include/Api.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/Api.h b/include/Api.h
new file mode 100644
index 0000000..d47636d
--- /dev/null
+++ b/include/Api.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#if defined(_WIN32) && defined(NT_CONSOLE_APP)
+#define NT_API
+#elif defined(_WIN32) && defined(NT_EXPORTS)
+#define NT_API __declspec(dllexport)
+#elif defined(_WIN32)
+#define NT_API __declspec(dllimport)
+#else
+#define NT_API
+#endif