We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc635f commit cdfe8ccCopy full SHA for cdfe8cc
Auxiliary/DirectXTexEXR.cpp
@@ -45,8 +45,13 @@
45
#pragma warning(disable : 4244 4996)
46
#include <ImfRgbaFile.h>
47
#include <ImfIO.h>
48
+
49
+// https://openexr.com/en/latest/PortingGuide.html
50
+#include <OpenEXRConfig.h>
51
#pragma warning(pop)
52
53
+#define COMBINED_OPENEXR_VERSION ((10000*OPENEXR_VERSION_MAJOR) + (100*OPENEXR_VERSION_MINOR) + OPENEXR_VERSION_PATCH)
54
55
#ifdef __clang__
56
#pragma clang diagnostic pop
57
#endif
@@ -148,6 +153,13 @@ namespace
148
153
SetLastError(0);
149
154
}
150
155
156
+#if COMBINED_OPENEXR_VERSION >= 30300
157
+ int64_t read(void *buf, uint64_t sz, uint64_t offset) override
158
+ {
159
+ return Imf::IStream::read(buf, sz, offset);
160
+ }
161
+#endif
162
151
163
private:
152
164
HANDLE m_hFile;
165
LONGLONG m_EOF;
0 commit comments