Fix build on Windows (using cmake and nmake).

This commit is contained in:
Romain Tartiere 2010-04-16 20:39:56 +00:00
parent 3dccc218df
commit 3e8e1c8844
6 changed files with 32 additions and 11 deletions

View file

@ -55,13 +55,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