Fix PCSC compilation under windows

PR3843 based on release-v0.12 => rebased on master
This commit is contained in:
cslashm
2018-05-23 10:22:55 +02:00
parent a2cef8cba4
commit bdf5a3ad3f
4 changed files with 23 additions and 0 deletions
+9
View File
@@ -48,6 +48,15 @@ namespace hw {
/* ===================================================================== */
/* === Debug ==== */
/* ===================================================================== */
#ifdef WIN32
static char *pcsc_stringify_error(LONG rv) {
static __thread char out[20];
sprintf_s(out, sizeof(out), "0x%08lX", rv);
return out;
}
#endif
void set_apdu_verbose(bool verbose) {
apdu_verbose = verbose;
}