From 28d040d8c243d28e1f851bb80f1d5ba30d22fd3c Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 12 2016 04:35:17 +0000 Subject: api headers: added nt_dalist.h, nt_pe.h, for smooth foreign toolchain support. --- 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 + +#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 #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 + +#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 #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 \