opensc/src
Maciej S. Szmigiero da6815d542 Use built-in formatted output functions on mingw
Mingw currently links to msvcrt.dll as C runtime.
This library is documented by Microsoft as off-limits to applications and
its feature set vary between Windows versions.

Due to this, presence of particular printf() format string directives
depends on which Windows version the code is run.

This is, naturally, bad, so mingw developers introduced ability to replace
formatted output functions with built-in equivalents with defined feature
set by setting "__USE_MINGW_ANSI_STDIO" macro to 1.
There are, however, no built-in equivalents for "_s" suffixed functions.
Fortunately, they are used only a few times in minidriver so let's simply
replace them with equivalent code using standard functions.

This also allows skipping "MINGW_HAS_SECURE_API" macro definition so any
future uses will be caught by compiler.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2017-03-27 11:05:16 +02:00
..
common License clarification (#988) 2017-03-14 22:47:13 +01:00
libopensc Use built-in formatted output functions on mingw 2017-03-27 11:05:16 +02:00
minidriver Use built-in formatted output functions on mingw 2017-03-27 11:05:16 +02:00
pkcs11 Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
pkcs15init Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
scconf fixed and cleaned up nmake Makefiles 2016-06-23 07:35:53 +02:00
sm Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
smm Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
tests src/tests/Makefile.am: fix compilation with OpenSSL 2016-10-14 14:06:07 +02:00
tools Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
Makefile.am Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00
Makefile.mak Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00