libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.07k stars 209 forks source link

Windows: fix size prefix specifiers for printf() #305

Closed vtorri closed 3 years ago

vtorri commented 3 years ago

On Windows (mingw(-w64) and old Visual Studio, %z and %t are not supported. Use the size prefix specifiers for printf in msvcrt.dll. See : https://docs.microsoft.com/en-us/cpp/c-runtime-library/format-specification-syntax-printf-and-wprintf-functions?view=vs-2019

brarcher commented 3 years ago

Thanks for the change!

Would you mind putting some of the commit message comment next to the #define for documentation?

vtorri commented 3 years ago

done