libcheck / check

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

Windows: Inform compiler (GCC/MinGW) that format strings to use are GNU/c99 style #339

Closed bradh352 closed 3 years ago

bradh352 commented 3 years ago

Check uses a private snprintf implementation that does not support the Windows format strings of %I64u or similar and instead support the C99 and GNU format format strings like %llu and %zu. Let the compiler know this otherwise we'll get warnings every time %llu, %lld, %zu are used.

brarcher commented 3 years ago

Thanks!