mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-28 08:06:16 +00:00
Fix build on Microsoft Windows.
This commit is contained in:
@@ -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 };
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user