summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-11 23:26:35 -0500
committermidipix <writeonce@midipix.org>2016-12-11 23:35:17 -0500
commit28d040d8c243d28e1f851bb80f1d5ba30d22fd3c (patch)
treefa7339b882087be88d7f0e8c3e2518e12b92dfa4
parent230c904e5d10c61b6c7730e63e7f4340834db7b8 (diff)
downloadntapi-28d040d8c243d28e1f851bb80f1d5ba30d22fd3c.tar.bz2
ntapi-28d040d8c243d28e1f851bb80f1d5ba30d22fd3c.tar.xz
api headers: added nt_dalist.h, nt_pe.h, for smooth foreign toolchain support.
-rw-r--r--include/ntapi/nt_dalist.h14
-rw-r--r--include/ntapi/nt_ldr.h2
-rw-r--r--include/ntapi/nt_pe.h14
-rw-r--r--include/ntapi/nt_process.h2
-rw-r--r--project/headers.mk2
5 files changed, 32 insertions, 2 deletions
diff --git a/include/ntapi/nt_dalist.h b/include/ntapi/nt_dalist.h
new file mode 100644
index 0000000..ad6bf5b
--- /dev/null
+++ b/include/ntapi/nt_dalist.h
@@ -0,0 +1,14 @@
+#ifndef _NT_DALIST_H_
+#define _NT_DALIST_H_
+
+#ifdef _MIDIPIX_FREESTANDING
+
+#include <dalist/dalist.h>
+
+#else
+
+#include "dalist.h"
+
+#endif
+
+#endif
diff --git a/include/ntapi/nt_ldr.h b/include/ntapi/nt_ldr.h
index daabc11..b438b34 100644
--- a/include/ntapi/nt_ldr.h
+++ b/include/ntapi/nt_ldr.h
@@ -1,8 +1,8 @@
#ifndef _NT_LDR_H_
#define _NT_LDR_H_
-#include <dalist/dalist.h>
#include "nt_abi.h"
+#include "nt_dalist.h"
#include "nt_object.h"
typedef int32_t __stdcall ntapi_ldr_load_dll(
diff --git a/include/ntapi/nt_pe.h b/include/ntapi/nt_pe.h
new file mode 100644
index 0000000..f7cc3d1
--- /dev/null
+++ b/include/ntapi/nt_pe.h
@@ -0,0 +1,14 @@
+#ifndef _NT_PE_H_
+#define _NT_PE_H_
+
+#ifdef _MIDIPIX_FREESTANDING
+
+#include <pemagine/pemagine.h>
+
+#else
+
+#include "pemagine.h"
+
+#endif
+
+#endif
diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h
index 44b237a..8ffd1b6 100644
--- a/include/ntapi/nt_process.h
+++ b/include/ntapi/nt_process.h
@@ -1,8 +1,8 @@
#ifndef _NT_PROCESS_H_
#define _NT_PROCESS_H_
-#include <pemagine/pemagine.h>
#include "nt_abi.h"
+#include "nt_pe.h"
#include "nt_compiler.h"
#include "nt_object.h"
#include "nt_memory.h"
diff --git a/project/headers.mk b/project/headers.mk
index 4c908cd..2536c98 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -10,6 +10,7 @@ API_HEADERS = \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_compiler.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_crc32.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_daemon.h \
+ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_dalist.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_debug.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_device.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_exception.h \
@@ -27,6 +28,7 @@ API_HEADERS = \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_mount.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_object.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_os.h \
+ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_pe.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_pnp.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_port.h \
$(SOURCE_DIR)/include/$(PACKAGE)/./nt_process.h \