Added some missing headers.

This commit is contained in:
Patrick 2025-06-28 02:23:23 +02:00
parent 86f3790ce1
commit 973b62a348
2 changed files with 6 additions and 1 deletions

View File

@ -4,9 +4,12 @@
#if !defined(MIJIN_MEMORY_STACK_ALLOCATOR_HPP_INCLUDED) #if !defined(MIJIN_MEMORY_STACK_ALLOCATOR_HPP_INCLUDED)
#define MIJIN_MEMORY_STACK_ALLOCATOR_HPP_INCLUDED 1 #define MIJIN_MEMORY_STACK_ALLOCATOR_HPP_INCLUDED 1
#include <memory>
#include <utility>
#include "../debug/assert.hpp" #include "../debug/assert.hpp"
#include "../internal/common.hpp" #include "../internal/common.hpp"
#include "../util/align.hpp" #include "../util/align.hpp"
#include "../util/concepts.hpp"
#include "../util/traits.hpp" #include "../util/traits.hpp"
#if !defined(MIJIN_STACK_ALLOCATOR_DEBUG) #if !defined(MIJIN_STACK_ALLOCATOR_DEBUG)

View File

@ -4,6 +4,8 @@
#if !defined(MIJIN_UTIL_ALIGN_HPP_INCLUDED) #if !defined(MIJIN_UTIL_ALIGN_HPP_INCLUDED)
#define MIJIN_UTIL_ALIGN_HPP_INCLUDED 1 #define MIJIN_UTIL_ALIGN_HPP_INCLUDED 1
#include <bit>
#include <cstdint>
#include "../internal/common.hpp" #include "../internal/common.hpp"
namespace mijin namespace mijin
@ -27,4 +29,4 @@ T* alignUp(T* pointer, std::uintptr_t alignTo) MIJIN_NOEXCEPT
#define MIJIN_STRIDEOF(T) mijin::alignUp(sizeof(T), alignof(T)) #define MIJIN_STRIDEOF(T) mijin::alignUp(sizeof(T), alignof(T))
} // namespace mijin } // namespace mijin
#endif // !defined(MIJIN_UTIL_ALIGN_HPP_INCLUDED) #endif // !defined(MIJIN_UTIL_ALIGN_HPP_INCLUDED)