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