vcpkg/ports/tinyexr/fix-uwp.patch
Osyotr 2d2537b079
[tinyexr] Update to 1.0.5 (#32074)
* [tinyexr] Update to 1.0.5

* fix uwp builds
2023-06-21 22:13:41 -07:00

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()