Fix build on Microsoft Windows.

This commit is contained in:
Romain Tartiere 2010-08-24 11:03:59 +00:00
parent cbc3a62db1
commit a676d34e5d
2 changed files with 7 additions and 1 deletions

View file

@ -38,6 +38,13 @@
#include "pn53x.h" #include "pn53x.h"
#include "../mirror-subr.h" #include "../mirror-subr.h"
#ifdef _WIN32
#include <windows.h>
#define strdup _strdup
#define snprintf sprintf_s
#endif
// PN53X configuration // PN53X configuration
const byte_t pncmd_get_firmware_version [ 2] = { 0xD4,0x02 }; const byte_t pncmd_get_firmware_version [ 2] = { 0xD4,0x02 };
const byte_t pncmd_get_general_status [ 2] = { 0xD4,0x04 }; const byte_t pncmd_get_general_status [ 2] = { 0xD4,0x04 };

View file

@ -36,7 +36,6 @@
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#define strdup _strdup
#define snprintf sprintf_s #define snprintf sprintf_s
#endif #endif