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

flann: fix build with MSVC /sdl option

parent b991665b
...@@ -63,7 +63,12 @@ class Logger ...@@ -63,7 +63,12 @@ class Logger
stream = stdout; stream = stdout;
} }
else { else {
#ifdef _MSC_VER
if (fopen_s(&stream, name, "w") != 0)
stream = NULL;
#else
stream = fopen(name,"w"); stream = fopen(name,"w");
#endif
if (stream == NULL) { if (stream == NULL) {
stream = stdout; 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