mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 08:09:01 +08:00
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()
|