aboutsummaryrefslogtreecommitdiff
path: root/operating-system-experiment/Base.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-09 21:59:17 +0800
committercrupest <crupest@outlook.com>2021-06-09 21:59:17 +0800
commita2cf634d1bceb3614b1f5adcab5b2b41cddbd3c4 (patch)
tree9f3316e647072c96e90966680e3f60d09bac214f /operating-system-experiment/Base.h
parent33e77f49de0cdeda25d9fc3bc36915d4713c0b6b (diff)
downloadlife-a2cf634d1bceb3614b1f5adcab5b2b41cddbd3c4.tar.gz
life-a2cf634d1bceb3614b1f5adcab5b2b41cddbd3c4.tar.bz2
life-a2cf634d1bceb3614b1f5adcab5b2b41cddbd3c4.zip
Add operating system experiement.
Diffstat (limited to 'operating-system-experiment/Base.h')
-rw-r--r--operating-system-experiment/Base.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/operating-system-experiment/Base.h b/operating-system-experiment/Base.h
new file mode 100644
index 0000000..b3ac1ee
--- /dev/null
+++ b/operating-system-experiment/Base.h
@@ -0,0 +1,22 @@
+#ifndef HEADER_BASE_H
+#define HEADER_BASE_H
+
+#ifdef _WIN32
+#define CRU_WINDOWS 1
+#endif
+
+#ifdef CRU_WINDOWS
+#include <Windows.h>
+#endif
+
+#ifdef CRU_WINDOWS
+#ifdef CRU_EXPORT_API
+#define CRU_API __declspec(dllexport)
+#else
+#define CRU_API __declspec(dllimport)
+#endif
+#else
+#define CRU_API
+#endif
+
+#endif \ No newline at end of file