summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/darktable/files/patch-src-common-imageio_exr.hh24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/darktable/files/patch-src-common-imageio_exr.hh b/graphics/darktable/files/patch-src-common-imageio_exr.hh
new file mode 100644
index 000000000000..8e5a320a754b
--- /dev/null
+++ b/graphics/darktable/files/patch-src-common-imageio_exr.hh
@@ -0,0 +1,24 @@
+--- src/common/imageio_exr.hh.orig
++++ src/common/imageio_exr.hh
+@@ -21,7 +21,11 @@
+ #include "common/image.h"
+ #include "common/mipmap_cache.h"
+
++#if __cplusplus >= 201103L || defined(__clang__)
++#include <memory>
++#else
+ #include <tr1/memory>
++#endif
+
+ #include <OpenEXR/ImfFrameBuffer.h>
+ #include <OpenEXR/ImfTestFile.h>
+@@ -56,7 +60,11 @@ public:
+ }
+
+ uint32_t size;
++#if __cplusplus >= 201103L || defined(__clang__)
++ std::shared_ptr<uint8_t> data;
++#else
+ std::tr1::shared_ptr<uint8_t> data;
++#endif
+ };