summaryrefslogtreecommitdiffhomepage
path: root/include/LibC++
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 10:10:06 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 10:10:06 +0100
commitd532b43153cb68d6e92c5dac58cbd3c8ab4f60af (patch)
treee748d39deee4e4c0983354ccf3fa419263368f87 /include/LibC++
parentba1b968d17a1ed29694f850af58787c3eb2657d4 (diff)
feat! Use header guards instead of pragma once.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/LibC++')
-rw-r--r--include/LibC++/__abi.h5
-rw-r--r--include/LibC++/base_alloc.h5
-rw-r--r--include/LibC++/base_exception.h5
-rw-r--r--include/LibC++/base_math.h5
-rw-r--r--include/LibC++/base_process.h5
-rw-r--r--include/LibC++/new.h5
6 files changed, 24 insertions, 6 deletions
diff --git a/include/LibC++/__abi.h b/include/LibC++/__abi.h
index e63b9b5..e1f2310 100644
--- a/include/LibC++/__abi.h
+++ b/include/LibC++/__abi.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_LIBCXX_ABI_H
+#define NECTAR_LIBCXX_ABI_H
#include <LibC++/base_process.h>
#include <LibC++/defines.h>
@@ -20,3 +21,5 @@ inline void __compilerkit_unreachable(void) {
}
__fini_decl()
+
+#endif // NECTAR_LIBCXX_ABI_H
diff --git a/include/LibC++/base_alloc.h b/include/LibC++/base_alloc.h
index 96a8161..f8d9dbc 100644
--- a/include/LibC++/base_alloc.h
+++ b/include/LibC++/base_alloc.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_LIBCXX_BASE_ALLOC_H
+#define NECTAR_LIBCXX_BASE_ALLOC_H
#include <LibC++/defines.h>
@@ -42,3 +43,5 @@ inline void release_nothrow(KindClass ptr) noexcept {
}
} // namespace std::base_alloc
+#endif // NECTAR_LIBCXX_BASE_ALLOC_H
+
diff --git a/include/LibC++/base_exception.h b/include/LibC++/base_exception.h
index 571e244..6148a90 100644
--- a/include/LibC++/base_exception.h
+++ b/include/LibC++/base_exception.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_LIBCXX_BASE_EXCEPTION_H
+#define NECTAR_LIBCXX_BASE_EXCEPTION_H
#include <LibC++/__abi.h>
#include <LibC++/base_process.h>
@@ -36,3 +37,5 @@ inline void __throw_bad_array_new_length(const char* what) {
}
} // namespace std::base_exception::abi
+#endif // NECTAR_LIBCXX_BASE_EXCEPTION_H
+
diff --git a/include/LibC++/base_math.h b/include/LibC++/base_math.h
index c9f390d..80b222e 100644
--- a/include/LibC++/base_math.h
+++ b/include/LibC++/base_math.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_LIBCXX_BASE_MATH_H
+#define NECTAR_LIBCXX_BASE_MATH_H
#include <defines>
@@ -97,3 +98,5 @@ typename<class Result> using callable_type = Result (*)(size_t n, ...);
#define __cpp_lib_base_math 1
#endif
+#endif // NECTAR_LIBCXX_BASE_MATH_H
+
diff --git a/include/LibC++/base_process.h b/include/LibC++/base_process.h
index a3e3147..316b5a0 100644
--- a/include/LibC++/base_process.h
+++ b/include/LibC++/base_process.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_LIBCXX_BASE_PROCESS_H
+#define NECTAR_LIBCXX_BASE_PROCESS_H
#include <defines>
@@ -44,3 +45,5 @@ __fini_decl()
}
} // namespace std::base_process
+#endif // NECTAR_LIBCXX_BASE_PROCESS_H
+
diff --git a/include/LibC++/new.h b/include/LibC++/new.h
index 111e1aa..d40c49a 100644
--- a/include/LibC++/new.h
+++ b/include/LibC++/new.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_LIBCXX_NEW_H
+#define NECTAR_LIBCXX_NEW_H
#include <defines>
@@ -64,3 +65,5 @@ void operator delete(void*, size_t) noexcept;
void operator delete[](void*) noexcept;
+#endif // NECTAR_LIBCXX_NEW_H
+