aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/WindowsEnv/ccall.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-26 03:45:39 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-26 03:45:39 +0300
commit202e1a58d5228e4efd6bafbe7b755d7bd192f516 (patch)
treed23d9b3d219eecdf48ee8f81415043e6fd5232ed /src/WindowsEnv/ccall.h
parentrename directories (diff)
downloadwindows-env-202e1a58d5228e4efd6bafbe7b755d7bd192f516.tar.gz
windows-env-202e1a58d5228e4efd6bafbe7b755d7bd192f516.zip
fix x86 builds
Diffstat (limited to '')
-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