forked from bartvdbraak/blender
OCIO: Disable the warnings related on C4251
Those warnings are trigerred by stl classes in OCIO's public interface. To quote MSDN: "C4251 can be ignored if you are deriving from a type in the Standard C++ Library" This is the only instance where those warnings hunts us, so for now we can keep it all local in intern/opencolorio but this might be changed in the future.
This commit is contained in:
parent
b2655167c6
commit
5f613f7b5d
@ -29,7 +29,14 @@
|
||||
#include <sstream>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable : 4251 4275)
|
||||
#endif
|
||||
#include <OpenColorIO/OpenColorIO.h>
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
using namespace OCIO_NAMESPACE;
|
||||
|
||||
|
@ -39,7 +39,15 @@
|
||||
|
||||
#include "glew-mx.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable : 4251 4275)
|
||||
#endif
|
||||
#include <OpenColorIO/OpenColorIO.h>
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
|
||||
using namespace OCIO_NAMESPACE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user