Skip to content

Commit af28846

Browse files
authored
Merge pull request #2 from hjmallon/pr.hunterise-2.4.0
Hunterise OpenEXR
2 parents 9343530 + a5b0172 commit af28846

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

OpenEXR/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
include("cmake/HunterGate.cmake")
55
HunterGate(
6-
URL "https://github.com/cpp-pm/hunter/archive/v0.23.242.tar.gz"
7-
SHA1 "503b149d0ebdbc598e498f1669ae828a2136b838"
6+
URL "https://github.com/cpp-pm/hunter/archive/v0.23.245.tar.gz"
7+
SHA1 "36e7f44ee4b3f8e25683e9d700f05a27ecb0a848"
88
)
99

1010
# We require this to get object library link library support and

OpenEXR/IlmImf/ImfAttribute.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Attribute::~Attribute () {}
6363

6464
namespace {
6565

66-
struct NameCompare: std::binary_function <const char *, const char *, bool>
66+
struct NameCompare
6767
{
6868
bool
6969
operator () (const char *x, const char *y) const
@@ -88,21 +88,8 @@ class LockedTypeMap: public TypeMap
8888
LockedTypeMap &
8989
typeMap ()
9090
{
91-
// c++11 requires thread-safe static variable initialization
92-
#if __cplusplus >= 201103L
9391
static LockedTypeMap tMap;
9492
return tMap;
95-
#else
96-
static Mutex criticalSection;
97-
Lock lock (criticalSection);
98-
99-
static LockedTypeMap* typeMap = 0;
100-
101-
if (typeMap == 0)
102-
typeMap = new LockedTypeMap ();
103-
104-
return *typeMap;
105-
#endif
10693
}
10794

10895

0 commit comments

Comments
 (0)