Skip to content

Commit

Permalink
Fix windows C++ build
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Feb 27, 2024
1 parent fda23d8 commit 82e18ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/perspective/src/cpp/storage_impl_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ t_lstore::create_file() {
}

void*
t_lstore::create_mapping() const {
t_lstore::create_mapping() {
void* rval = mmap(0, capacity(), m_mprot, m_mflags, m_fd, 0);
PSP_VERBOSE_ASSERT(rval != MAP_FAILED, "mmap failed");
return rval;
Expand Down
2 changes: 1 addition & 1 deletion cpp/perspective/src/cpp/storage_impl_osx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ t_lstore::create_file() {
}

void*
t_lstore::create_mapping() const {
t_lstore::create_mapping() {
void* rval = mmap(nullptr, capacity(), m_mprot, m_mflags, m_fd, 0);
PSP_VERBOSE_ASSERT(rval, != MAP_FAILED, "mmap failed");
return rval;
Expand Down
2 changes: 1 addition & 1 deletion cpp/perspective/src/cpp/storage_impl_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ t_lstore::create_file() {
}

void*
t_lstore::create_mapping() const {
t_lstore::create_mapping() {
std::pair<std::uint32_t, std::uint32_t> capacity = capacity_pair();

m_winmapping_handle = CreateFileMapping(
Expand Down
2 changes: 1 addition & 1 deletion cpp/perspective/src/include/perspective/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class PERSPECTIVE_MPROTECT_EXPORT t_lstore : public t_debug_helper
private:
void reserve_impl(t_uindex capacity, bool allow_shrink);
t_handle create_file();
void* create_mapping() const;
void* create_mapping();
void resize_mapping(t_uindex cap_new);
void destroy_mapping();

Expand Down

0 comments on commit 82e18ec

Please sign in to comment.