aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/WindowsEnv/ccall.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowsEnv/ccall.h')
-rw-r--r--src/WindowsEnv/ccall.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/WindowsEnv/ccall.h b/src/WindowsEnv/ccall.h
new file mode 100644
index 0000000..541cd5e
--- /dev/null
+++ b/src/WindowsEnv/ccall.h
@@ -0,0 +1,13 @@
+#ifndef WINDOWS_ENV_CCALL_H
+#define WINDOWS_ENV_CCALL_H
+
+#if defined(i386_HOST_ARCH)
+#define WINDOWS_ENV_CCALL stdcall
+#elif defined(x86_64_HOST_ARCH)
+#define WINDOWS_ENV_CCALL ccall
+#else
+#define WINDOWS_ENV_CCALL ccall
+#warning "Unsupported architecture"
+#endif
+
+#endif