summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-12 16:47:24 -0500
committermidipix <writeonce@midipix.org>2016-12-12 16:47:24 -0500
commitfa20def8caa8623691d50bfb44e660eb48802dc6 (patch)
treeb68fcd78957da5da840aaa4e1c26d1194d293831
parentcd5d5c3277aa300cac91d09ba02212c06e6b1218 (diff)
downloadntapi-fa20def8caa8623691d50bfb44e660eb48802dc6.tar.bz2
ntapi-fa20def8caa8623691d50bfb44e660eb48802dc6.tar.xz
api headers: nt_{abi|compiler}.h: provide a smoother foreign toolchain support.
-rw-r--r--include/ntapi/nt_abi.h25
-rw-r--r--include/ntapi/nt_compiler.h3
2 files changed, 28 insertions, 0 deletions
diff --git a/include/ntapi/nt_abi.h b/include/ntapi/nt_abi.h
index de99106..95fc9bf 100644
--- a/include/ntapi/nt_abi.h
+++ b/include/ntapi/nt_abi.h
@@ -14,15 +14,40 @@
#ifndef __in
#define __in
+#endif
+
+#ifndef __out
#define __out
+#endif
+
+#ifndef __in_opt
#define __in_opt
+#endif
+
+#ifndef __out_opt
#define __out_opt
+#endif
+
+#ifndef __in_out
#define __in_out
+#endif
+
+#ifndef __in_out_opt
#define __in_out_opt
+#endif
+
+#ifndef __optional
#define __optional
+#endif
+
+#ifndef __reserved
#define __reserved
#endif
+#ifndef __inline__
+#define __inline__ __inline
+#endif
+
typedef unsigned short wchar16_t;
typedef unsigned int wchar32_t;
diff --git a/include/ntapi/nt_compiler.h b/include/ntapi/nt_compiler.h
index bb4b31d..0336330 100644
--- a/include/ntapi/nt_compiler.h
+++ b/include/ntapi/nt_compiler.h
@@ -31,6 +31,9 @@
#define __attr_import__ __declspec(dllimport)
#endif
+#ifndef _DALIST_FREESTANDING
+#define _DALIST_FREESTANDING
+#endif
/* visual studio: end */
#else