<div dir="ltr">On Mon, Feb 27, 2017 at 4:28 AM, Roman Haefeli <span dir="ltr"><<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">...<br></div></div>
<br>
I see you fixed even more for Windows than what I did. I would like to<br>
integrate your changes, but there are some questions left. The svn log<br>
suggests that you applied some changes specifically for Windows 10. In<br>
the diff, I see you wrapped some lines of code in:<br>
<br>
#ifdef _MSC_VER<br>
<br>
If I understand correctly, those lines are only used when compiling<br>
with Microsoft Visual Studio and mingw wouldn't use those lines. I'm<br>
compiling with mingw and would like the result to work will in Windows<br>
10, too. Now, my question is: Should the code you put in between<br>
'#ifdef _MSC_VER' always be used when targeting Windows, regardless of<br>
the compiler or is that code really specific for MSVC?<br>
<br></blockquote><div><br></div><div>It's used to specify the use of sprintf_s() and  strncpy_s(), the safer versions of sprintf() and strncpy(). If your compiler knows about these functions it would be better to use them, but not essential.<br><br></div><div>Martin<br><br></div></div></div></div>