From a676d34e5d6932474084fe890df0fc431815f8de Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 24 Aug 2010 11:03:59 +0000 Subject: [PATCH] Fix build on Microsoft Windows. --- libnfc/chips/pn53x.c | 7 +++++++ libnfc/nfc.c | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 4d87474..ebb3555 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -38,6 +38,13 @@ #include "pn53x.h" #include "../mirror-subr.h" +#ifdef _WIN32 + #include + + #define strdup _strdup + #define snprintf sprintf_s +#endif + // PN53X configuration const byte_t pncmd_get_firmware_version [ 2] = { 0xD4,0x02 }; const byte_t pncmd_get_general_status [ 2] = { 0xD4,0x04 }; diff --git a/libnfc/nfc.c b/libnfc/nfc.c index 60804c3..3d30165 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -36,7 +36,6 @@ #ifdef _WIN32 #include - #define strdup _strdup #define snprintf sprintf_s #endif