From fa20def8caa8623691d50bfb44e660eb48802dc6 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 12 2016 21:47:24 +0000 Subject: api headers: nt_{abi|compiler}.h: provide a smoother foreign toolchain support. --- 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