mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:59:08 +08:00
2d2537b079
* [tinyexr] Update to 1.0.5 * fix uwp builds
13 lines
425 B
Diff
13 lines
425 B
Diff
--- a/tinyexr.h
|
|
+++ b/tinyexr.h
|
|
@@ -608,7 +608,9 @@ extern int LoadEXRFromMemory(float **out_rgba, int *width, int *height,
|
|
#define NOMINMAX
|
|
#endif
|
|
#include <windows.h> // for UTF-8 and memory-mapping
|
|
+#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
|
|
#define TINYEXR_USE_WIN32_MMAP (1)
|
|
+#endif
|
|
|
|
#elif defined(__linux__) || defined(__unix__)
|
|
#include <fcntl.h> // for open()
|