CMake: Fix FFMPeg/OpenEXR issues in CMake system and possibly the others. OpenEXR...
[blender.git] / source / blender / imbuf / intern / openexr / openexr_api.cpp
index 01e6c6b3fb7edd5fe7138c33f593e71b4d6b8d50..3027f9508cf4c11bb7f2ace8c1e31efb2cd2be33 100644 (file)
 
 extern "C"
 {
+
+// The following prevents a linking error in debug mode for MSVC using the libs in CVS
+#if defined(_WIN32) && defined(_DEBUG) && !defined(__MINGW32__) && !defined(__CYGWIN__)
+_CRTIMP void __cdecl _invalid_parameter_noinfo(void)
+{
+}
+#endif
+
 #include "MEM_guardedalloc.h"
 
 #include "BLI_blenlib.h"