Commit 22d2207d authored by Alexander Alekhin's avatar Alexander Alekhin
Browse files

flann: fix build with MSVC /sdl option

Showing with 5 additions and 0 deletions
+5 -0
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment