Skip to content

Commit 5dedd15

Browse files
committed
Fix windows build
1 parent 73f7afb commit 5dedd15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/snmalloc/pal/pal_windows.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ namespace snmalloc
592592

593593
# ifdef PLATFORM_HAS_VIRTUALALLOC2
594594
template<bool state_using>
595-
void* PALWindows::reserve_aligned(size_t size) noexcept
595+
inline void* PALWindows::reserve_aligned(size_t size) noexcept
596596
{
597597
SNMALLOC_ASSERT(bits::is_pow2(size));
598598
SNMALLOC_ASSERT(size >= minimum_alloc_size);
@@ -622,7 +622,7 @@ namespace snmalloc
622622
}
623623
# endif
624624

625-
void* PALWindows::reserve(size_t size) noexcept
625+
inline void* PALWindows::reserve(size_t size) noexcept
626626
{
627627
void* ret = VirtualAlloc(nullptr, size, MEM_RESERVE, PAGE_READWRITE);
628628

0 commit comments

Comments
 (0)