Skip to content

Commit 82e18ec

Browse files
committed
Fix windows C++ build
1 parent fda23d8 commit 82e18ec

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

cpp/perspective/src/cpp/storage_impl_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ t_lstore::create_file() {
8484
}
8585

8686
void*
87-
t_lstore::create_mapping() const {
87+
t_lstore::create_mapping() {
8888
void* rval = mmap(0, capacity(), m_mprot, m_mflags, m_fd, 0);
8989
PSP_VERBOSE_ASSERT(rval != MAP_FAILED, "mmap failed");
9090
return rval;

cpp/perspective/src/cpp/storage_impl_osx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ t_lstore::create_file() {
8484
}
8585

8686
void*
87-
t_lstore::create_mapping() const {
87+
t_lstore::create_mapping() {
8888
void* rval = mmap(nullptr, capacity(), m_mprot, m_mflags, m_fd, 0);
8989
PSP_VERBOSE_ASSERT(rval, != MAP_FAILED, "mmap failed");
9090
return rval;

cpp/perspective/src/cpp/storage_impl_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ t_lstore::create_file() {
9393
}
9494

9595
void*
96-
t_lstore::create_mapping() const {
96+
t_lstore::create_mapping() {
9797
std::pair<std::uint32_t, std::uint32_t> capacity = capacity_pair();
9898

9999
m_winmapping_handle = CreateFileMapping(

cpp/perspective/src/include/perspective/storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class PERSPECTIVE_MPROTECT_EXPORT t_lstore : public t_debug_helper
240240
private:
241241
void reserve_impl(t_uindex capacity, bool allow_shrink);
242242
t_handle create_file();
243-
void* create_mapping() const;
243+
void* create_mapping();
244244
void resize_mapping(t_uindex cap_new);
245245
void destroy_mapping();
246246

0 commit comments

Comments
 (0)