Merge pull request #9004 from alalek:fix_build_flann_sdl

This commit is contained in:
Vadim Pisarevsky 2017-06-27 14:05:23 +00:00
commit 9e9f57c139

View File

@ -63,7 +63,12 @@ class Logger
stream = stdout;
}
else {
#ifdef _MSC_VER
if (fopen_s(&stream, name, "w") != 0)
stream = NULL;
#else
stream = fopen(name,"w");
#endif
if (stream == NULL) {
stream = stdout;
}