summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 \