Skip to content

Commit

Permalink
Fix: Disable MemoryMappedFile on Windows UWP
Browse files Browse the repository at this point in the history
See microsoft/vcpkg#40874 for more information.
  • Loading branch information
spnda committed Oct 21, 2024
1 parent 1ce0249 commit 279d960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fastgltf/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ namespace fastgltf {
}
};

#if defined(__APPLE__) || defined(__linux__) || defined(_WIN32)
#if defined(__APPLE__) || defined(__linux__) || (defined(_WIN32) && !defined(WINDOWS_UWP))
#define FASTGLTF_HAS_MEMORY_MAPPED_FILE 1
/**
* Memory-maps a file. This uses mmap on macOS and Linux, and MapViewOfFile on Windows, and is not available elsewhere.
Expand Down

0 comments on commit 279d960

Please sign in to comment.