Fix build on Microsoft Windows.

This commit is contained in:
Romain Tartiere 2010-08-10 21:45:30 +00:00
parent 4a5347e5ae
commit ca6b768a67
2 changed files with 5 additions and 1 deletions

View file

@ -418,8 +418,9 @@ const char *
pn53x_strerror (const nfc_device_t *pnd)
{
const char *pcRes = "Unknown error";
size_t i;
for (size_t i=0; i < (sizeof (sErrorMessages) / sizeof (struct sErrorMessage)); i++) {
for (i=0; i < (sizeof (sErrorMessages) / sizeof (struct sErrorMessage)); i++) {
if (sErrorMessages[i].iErrorCode == pnd->iErrorCode) {
pcRes = sErrorMessages[i].pcErrorMsg;
break;

View file

@ -26,3 +26,6 @@ EXPORTS
iso14443a_crc
append_iso14443a_crc
nfc_version
nfc_perror
nfc_strerror
nfc_strerror_r