(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
commit 086e24c407
9 changed files with 39 additions and 26 deletions

View file

@ -54,13 +54,14 @@ int main(int argc, const char* argv[])
size_t i;
nfc_target_info_t nti;
nfc_device_desc_t *pnddDevices;
const char* acLibnfcVersion;
if (argc > 1) {
errx (1, "usage: %s", argv[0]);
}
// Display libnfc version
const char* acLibnfcVersion = nfc_version();
acLibnfcVersion = nfc_version();
printf("%s use libnfc %s\n", argv[0], acLibnfcVersion);
#ifdef HAVE_LIBUSB