(libnfc-less-bitutils-more-ponies) Fix build on windows:

- do not depends on byte swapping functions / macros;
  - add basic err.h functionalities.
This commit is contained in:
Romain Tartiere
2010-04-16 22:38:45 +00:00
9 changed files with 39 additions and 26 deletions

View File

@@ -35,8 +35,6 @@
#include <string.h>
#include <ctype.h>
#include <sys/endian.h>
#include <nfc/nfc.h>
#include "mifareultag.h"
@@ -217,9 +215,9 @@ int main(int argc, const char* argv[])
}
// Get the info from the current tag
// Get the info from the current tag (UID is stored little-endian)
pbtUID = nti.nai.abtUid;
printf("Found MIFARE Ultralight card with uid: %08x\n", bswap32(*((uint32_t *)&pbtUID)));
printf("Found MIFARE Ultralight card with uid: %02x%02x%02x%02x\n", pbtUID[3], pbtUID[2], pbtUID[1], pbtUID[0]);
if (bReadAction)
{