summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-05-01 08:35:38 +0200
committerAmlal <amlal@nekernel.org>2025-05-01 08:35:38 +0200
commit35ac989886dcab70ff4ba6bc6a1359d1290560ad (patch)
tree4ba89bacb3209e8d5763bf9759776c453a1aa413 /dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
parent6af5722b2b29731b3d96abfa7c2a512f5984312b (diff)
ld64: Make linker more robust, and extend PEF to version 4.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc')
-rw-r--r--dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
index d2194a8..5d035da 100644
--- a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
+++ b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
@@ -751,6 +751,13 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
kMacros.push_back(macro_unreachable);
+ Detail::bpp_macro macro_unused;
+
+ macro_unreachable.fName = "__unused";
+ macro_unreachable.fValue = "__libcompiler_unused";
+
+ kMacros.push_back(macro_unused);
+
Detail::bpp_macro macro_0;
macro_0.fName = "__false";
@@ -784,7 +791,7 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
kMacros.push_back(macro_size_t);
macro_size_t.fName = "__UINTPTR_TYPE__";
- macro_size_t.fValue = "unsigned int";
+ macro_size_t.fValue = "unsigned long long int";
kMacros.push_back(macro_size_t);