blob: 06dd2b01b23e13d6ac91b9a3345fef5220d2f3c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/core/OCIOYaml.cpp.orig 2019-03-28 05:12:57 UTC
+++ src/core/OCIOYaml.cpp
@@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O
#include <OpenColorIO/OpenColorIO.h>
-#ifndef WIN32
+#ifdef OLDYAML
// fwd declare yaml-cpp visibility
#pragma GCC visibility push(hidden)
@@ -1442,7 +1442,7 @@ OCIO_NAMESPACE_ENTER
#ifdef OLDYAML
if(node.FindValue("ocio_profile_version") == NULL)
#else
- if(node["ocio_profile_version"] == NULL)
+ if(!node["ocio_profile_version"].IsDefined())
#endif
{
std::ostringstream os;
|