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

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;
}