diff --git a/3rdparty/openexr/IlmImf/ImfAutoArray.h b/3rdparty/openexr/IlmImf/ImfAutoArray.h index edb8b10763..555205b0a0 100644 --- a/3rdparty/openexr/IlmImf/ImfAutoArray.h +++ b/3rdparty/openexr/IlmImf/ImfAutoArray.h @@ -46,6 +46,10 @@ #include "OpenEXRConfig.h" +#if !defined (HAVE_LARGE_STACK) +#include +#endif + namespace Imf { diff --git a/modules/highgui/src/grfmt_exr.cpp b/modules/highgui/src/grfmt_exr.cpp index f01f1fd8cb..9697cbc2d2 100644 --- a/modules/highgui/src/grfmt_exr.cpp +++ b/modules/highgui/src/grfmt_exr.cpp @@ -56,7 +56,7 @@ #include #include "grfmt_exr.hpp" -#if defined _MSC_VER && _MSC_VER >= 1200 +#if defined _WIN32 #undef UINT #define UINT ((Imf::PixelType)0)