File freeimage-openexr3.patch of Package freeimage

Index: FreeImage/Source/FreeImage/PluginEXR.cpp
===================================================================
--- FreeImage.orig/Source/FreeImage/PluginEXR.cpp	2021-04-14 13:16:56.226320847 +0200
+++ FreeImage/Source/FreeImage/PluginEXR.cpp	2021-04-14 13:20:02.683435617 +0200
@@ -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/Source/FreeImage/PluginTIFF.cpp
===================================================================
--- FreeImage.orig/Source/FreeImage/PluginTIFF.cpp	2021-04-14 13:16:56.254321015 +0200
+++ FreeImage/Source/FreeImage/PluginTIFF.cpp	2021-04-14 13:16:56.274321135 +0200
@@ -39,7 +39,7 @@
 #include "Utilities.h"
 #include <tiffio.h>
 #include "../Metadata/FreeImageTag.h"
-#include <OpenEXR/half.h>
+#include <half.h>
 
 #include "FreeImageIO.h"
 #include "PSDParser.h"
openSUSE Build Service is sponsored by