1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

flann: fix build with MSVC /sdl option

This commit is contained in:
Alexander Alekhin
2017-06-27 15:25:19 +03:00
parent b991665b5d
commit 22d2207d41
@@ -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;
}