From d532b43153cb68d6e92c5dac58cbd3c8ab4f60af Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 26 Dec 2025 10:10:06 +0100 Subject: feat! Use header guards instead of pragma once. Signed-off-by: Amlal El Mahrouss --- include/LibC++/__abi.h | 5 ++++- include/LibC++/base_alloc.h | 5 ++++- include/LibC++/base_exception.h | 5 ++++- include/LibC++/base_math.h | 5 ++++- include/LibC++/base_process.h | 5 ++++- include/LibC++/new.h | 5 ++++- 6 files changed, 24 insertions(+), 6 deletions(-) (limited to 'include/LibC++') 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 #include @@ -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 @@ -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 #include @@ -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 @@ -97,3 +98,5 @@ typename 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 @@ -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 @@ -64,3 +65,5 @@ void operator delete(void*, size_t) noexcept; void operator delete[](void*) noexcept; +#endif // NECTAR_LIBCXX_NEW_H + -- cgit v1.2.3