summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ntapi/nt_abi.h31
-rw-r--r--project/headers.mk1
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 \