Skip to content

Commit

Permalink
Fix: Use WINAPI_FAMILY macro instead of WINDOWS_UWP
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Oct 30, 2024
1 parent ed6a817 commit 5278229
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/fastgltf/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,11 @@ namespace fastgltf {
}
};

#if defined(__APPLE__) || defined(__linux__) || (defined(_WIN32) && !defined(WINDOWS_UWP))
#if defined(_WIN32)
#include <winapifamily.h>
#endif

#if defined(__APPLE__) || defined(__linux__) || (defined(_WIN32) && !(defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)))
#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 5278229

Please sign in to comment.