diff options
author | midipix <writeonce@midipix.org> | 2016-12-11 21:37:13 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-11 22:27:33 -0500 |
commit | 9e3f4e60fc8ce5a3604b4104b568c2186b3e428c (patch) | |
tree | 65e1851ec9804b276e5496acf0a1b27c20a04cb5 | |
parent | 643bab43280d2cd7e071788ac13f4af3f4c280b8 (diff) | |
download | ntapi-9e3f4e60fc8ce5a3604b4104b568c2186b3e428c.tar.bz2 ntapi-9e3f4e60fc8ce5a3604b4104b568c2186b3e428c.tar.xz |
api headers: added nt_abi.h, supporting visual studio and hosted environment.
-rw-r--r-- | include/ntapi/nt_abi.h | 31 | ||||
-rw-r--r-- | project/headers.mk | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/include/ntapi/nt_abi.h b/include/ntapi/nt_abi.h new file mode 100644 index 0000000..de99106 --- /dev/null +++ b/include/ntapi/nt_abi.h @@ -0,0 +1,31 @@ +#ifndef _NT_ABI_H_ +#define _NT_ABI_H_ + +#ifdef _MIDIPIX_FREESTANDING + +#include <psxtypes/psxtypes.h> + +#else + +#include <stdint.h> +#include <stddef.h> +#include <stdarg.h> +#include <sys/types.h> + +#ifndef __in +#define __in +#define __out +#define __in_opt +#define __out_opt +#define __in_out +#define __in_out_opt +#define __optional +#define __reserved +#endif + +typedef unsigned short wchar16_t; +typedef unsigned int wchar32_t; + +#endif + +#endif diff --git a/project/headers.mk b/project/headers.mk index b29341b..4579849 100644 --- a/project/headers.mk +++ b/project/headers.mk @@ -1,4 +1,5 @@ API_HEADERS = \ + $(SOURCE_DIR)/include/$(PACKAGE)/./nt_abi.h \ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_acl.h \ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_argv.h \ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_atom.h \ |