Files
pkgsrc-ng/graphics/darktable/patches/patch-src_common_imageio__exr.hh
2014-11-05 12:41:07 +01:00

32 lines
680 B
C++

$NetBSD: patch-src_common_imageio__exr.hh,v 1.3 2013/12/04 13:02:08 drochner Exp $
stdc++ fixes from joerg
--- src/common/imageio_exr.hh.orig 2013-06-24 18:35:28.000000000 +0000
+++ src/common/imageio_exr.hh
@@ -21,7 +21,15 @@
#include "common/image.h"
#include "common/mipmap_cache.h"
+#include <ciso646>
+
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#include <memory>
+using std::shared_ptr;
+#else
#include <tr1/memory>
+using std::tr1::shared_ptr;
+#endif
#include <OpenEXR/ImfFrameBuffer.h>
#include <OpenEXR/ImfTestFile.h>
@@ -56,7 +64,7 @@ public:
}
uint32_t size;
- std::tr1::shared_ptr<uint8_t> data;
+ shared_ptr<uint8_t> data;
};