diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-04 14:16:39 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-04 14:16:39 +0200 |
| commit | a38083f7d528111087949a0ba8e3970f091f2fc9 (patch) | |
| tree | c21cda9b4571758540564b562ea6858ddf89030b /DDKit | |
| parent | cd400898f5a6ef04690231323c0be107ae330fb4 (diff) | |
[FIX] CG's text writer functions. Need to fix ProgramLoader class now
for DLLs/LIBs.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'DDKit')
| -rw-r--r-- | DDKit/KernelStd.h | 4 | ||||
| -rw-r--r-- | DDKit/build.json | 2 | ||||
| -rw-r--r-- | DDKit/x86_64.make | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/DDKit/KernelStd.h b/DDKit/KernelStd.h index bdd8ce3d..abb56ea6 100644 --- a/DDKit/KernelStd.h +++ b/DDKit/KernelStd.h @@ -21,9 +21,9 @@ #define DK_FINAL #endif // defined(__cplusplus) -#ifndef __KERNEL__ +#ifndef __NEWOSKRNL__ #error !!! including header in kernel mode !!! -#endif // __KERNEL__ +#endif // __NEWOSKRNL__ struct DDK_STATUS_STRUCT; diff --git a/DDKit/build.json b/DDKit/build.json index b70e72d4..8fbde6ac 100644 --- a/DDKit/build.json +++ b/DDKit/build.json @@ -5,6 +5,6 @@ "sources_path": ["*.c", "*.cxx", "*.S"],
"output_name": "libDDK.lib",
"compiler_flags": ["-ffreestanding", "-shared", "-std=c17", "-std=c++20", "-fno-rtti", "-fno-exceptions", " -Wl,--subsystem=17"],
- "cpp_macros": ["__KERNEL__", "__DDK_AMD64__", "cDDKVersionHighest=1", "cDDKVersionLowest=1"]
+ "cpp_macros": ["__NEWOSKRNL__", "__DDK_AMD64__", "cDDKVersionHighest=1", "cDDKVersionLowest=1"]
}
\ No newline at end of file diff --git a/DDKit/x86_64.make b/DDKit/x86_64.make index 05b136d3..4e641acd 100644 --- a/DDKit/x86_64.make +++ b/DDKit/x86_64.make @@ -5,7 +5,7 @@ CC=x86_64-w64-mingw32-gcc
INC=-I./ -I../
-FLAGS=-ffreestanding -shared -std=c17 -std=c++20 -D__KERNEL__ -fno-rtti -fno-exceptions -D__DDK_AMD64__ -Wl,--subsystem=17
+FLAGS=-ffreestanding -shared -std=c17 -std=c++20 -D__NEWOSKRNL__ -fno-rtti -fno-exceptions -D__DDK_AMD64__ -Wl,--subsystem=17
VERSION=-DcDDKVersionLowest=1 -DcDDKVersionHighest=1
OUTPUT=libDDK.lib
|
