Skip to content

Commit

Permalink
[build] fix: Widows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jd28 committed Oct 9, 2024
1 parent ad12fe8 commit ed5e671
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/nw/util/Allocator.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <stddef.h>
#include <cstddef>

namespace nw {

Expand All @@ -10,8 +10,8 @@ namespace detail {
// Hide MemoryResource impl details
struct MemoryResourceInternal {
MemoryResourceInternal(MemoryResource* resoure);
void* allocate(size_t nbytes, size_t alignment = alignof(max_align_t));
void deallocate(void* p, size_t bytes, size_t alignment = alignof(max_align_t));
void* allocate(size_t nbytes, size_t alignment = alignof(std::max_align_t));
void deallocate(void* p, size_t bytes, size_t alignment = alignof(std::max_align_t));
MemoryResource* resource_;
};

Expand Down

0 comments on commit ed5e671

Please sign in to comment.