From 83be0bdf61588e413e03d5edbd6c68c98a53037f Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Thu, 17 Sep 2015 07:52:07 +0200 Subject: [PATCH] src: fix snprintf format for OSX - As LONG is defined as a int32_t in OSX. PR-URL: https://github.com/santigimeno/node-pcsclite/pull/44 --- src/common.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common.h b/src/common.h index e93616e..e6fcc8a 100644 --- a/src/common.h +++ b/src/common.h @@ -37,6 +37,13 @@ namespace { result); LocalFree(lpMsgBuf); +#elif __APPLE__ + snprintf(msg, + ERR_MSG_MAX_LEN, + "%s error: %s(0x%.8x)", + method, + pcsc_stringify_error(result), + result); #else snprintf(msg, ERR_MSG_MAX_LEN,