Fix openexr build with MSVC

This commit is contained in:
Andrey Kamaev
2012-08-25 17:12:17 +04:00
parent 867777f825
commit 941391c0be
6 changed files with 11 additions and 100 deletions

View File

@@ -44,6 +44,10 @@
#ifdef HAVE_OPENEXR
#if defined _MSC_VER && _MSC_VER >= 1200
# pragma warning( disable: 4100 4244 4267 )
#endif
#include <ImfHeader.h>
#include <ImfInputFile.h>
#include <ImfOutputFile.h>
@@ -53,11 +57,6 @@
#include "grfmt_exr.hpp"
#if defined _MSC_VER && _MSC_VER >= 1200
#pragma comment(lib, "Half.lib")
#pragma comment(lib, "Iex.lib")
#pragma comment(lib, "IlmImf.lib")
#pragma comment(lib, "IlmThread.lib")
#pragma comment(lib, "Imath.lib")
#undef UINT
#define UINT ((Imf::PixelType)0)