From 89aea08c202a396815fd6e2eb6ffe5d1d45d8482 Mon Sep 17 00:00:00 2001 From: Jamaika1 Date: Sun, 31 May 2020 08:14:44 +0200 Subject: [PATCH] Fix: change resultHolder.Get --- source/lib/dng_sdk/dng_pthread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/lib/dng_sdk/dng_pthread.cpp b/source/lib/dng_sdk/dng_pthread.cpp index 6f8d7dec..43a44196 100644 --- a/source/lib/dng_sdk/dng_pthread.cpp +++ b/source/lib/dng_sdk/dng_pthread.cpp @@ -392,7 +392,11 @@ int dng_pthread_create(dng_pthread_t *thread, const pthread_attr_t *attrs, void #endif std::pair > newMapEntry(threadID, +#if __GNUC__ > 3 + std::pair((HANDLE)result, resultHolder.Get ())); +#else std::pair((HANDLE)result, resultHolder.get ())); +#endif std::pair insertion = primaryHandleMap.insert(newMapEntry); // If there is a handle open on the thread, its ID should not be reused so assert that an insertion was made.