File freeimage-openexr3.patch of Package freeimage
---
Source/FreeImage/PluginEXR.cpp | 10 +++++-----
Source/FreeImage/PluginTIFF.cpp | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
Index: freeimage-3.18.0.1909/Source/FreeImage/PluginEXR.cpp
===================================================================
--- freeimage-3.18.0.1909.orig/Source/FreeImage/PluginEXR.cpp
+++ freeimage-3.18.0.1909/Source/FreeImage/PluginEXR.cpp
@@ -37,7 +37,7 @@
#include <OpenEXR/ImfRgba.h>
#include <OpenEXR/ImfArray.h>
#include <OpenEXR/ImfPreviewImage.h>
-#include <OpenEXR/half.h>
+#include <half.h>
// ==========================================================
@@ -66,11 +66,11 @@ public:
return ((unsigned)n != _io->read_proc(c, 1, n, _handle));
}
- virtual Imath::Int64 tellg() {
+ virtual uint64_t tellg() {
return _io->tell_proc(_handle);
}
- virtual void seekg(Imath::Int64 pos) {
+ virtual void seekg(uint64_t pos) {
_io->seek_proc(_handle, (unsigned)pos, SEEK_SET);
}
@@ -100,11 +100,11 @@ public:
}
}
- virtual Imath::Int64 tellp() {
+ virtual uint64_t tellp() {
return _io->tell_proc(_handle);
}
- virtual void seekp(Imath::Int64 pos) {
+ virtual void seekp(uint64_t pos) {
_io->seek_proc(_handle, (unsigned)pos, SEEK_SET);
}
};
Index: freeimage-3.18.0.1909/Source/FreeImage/PluginTIFF.cpp
===================================================================
--- freeimage-3.18.0.1909.orig/Source/FreeImage/PluginTIFF.cpp
+++ freeimage-3.18.0.1909/Source/FreeImage/PluginTIFF.cpp
@@ -39,7 +39,7 @@
#include "Utilities.h"
#include "../LibTIFF4/tiffiop.h"
#include "../Metadata/FreeImageTag.h"
-#include "../OpenEXR/Half/half.h"
+#include <half.h>
#include "FreeImageIO.h"
#include "PSDParser.h"