aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_ledger.cpp
diff options
context:
space:
mode:
authorcslashm <cslashm@gmail.com>2018-05-23 10:22:55 +0200
committercslashm <cslashm@gmail.com>2018-05-23 10:22:55 +0200
commitbdf5a3ad3fb9e626a0c1cc2264934f26d07d06fc (patch)
tree2b5825df6768c530b59dce4b4eda722fe6c106ec /src/device/device_ledger.cpp
parentMerge pull request #3800 (diff)
downloadmonero-bdf5a3ad3fb9e626a0c1cc2264934f26d07d06fc.tar.xz
Fix PCSC compilation under windows
PR3843 based on release-v0.12 => rebased on master
Diffstat (limited to 'src/device/device_ledger.cpp')
-rw-r--r--src/device/device_ledger.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp
index 3b9ab6744..aedaf8382 100644
--- a/src/device/device_ledger.cpp
+++ b/src/device/device_ledger.cpp
@@ -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;
}