summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/librfid/rfid.h1
-rw-r--r--src/rfid.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/librfid/rfid.h b/include/librfid/rfid.h
index e92cf58..64d6c06 100644
--- a/include/librfid/rfid.h
+++ b/include/librfid/rfid.h
@@ -3,6 +3,7 @@
#include <stddef.h>
#include <sys/types.h>
+#include <stdio.h>
#ifdef __MINGW32__
#define ENOTSUP 100
diff --git a/src/rfid.c b/src/rfid.c
index 9df85a0..a38171f 100644
--- a/src/rfid.c
+++ b/src/rfid.c
@@ -33,7 +33,7 @@ struct rfid_reader_handle rfid_rh;
#endif
#ifndef LIBRFID_FIRMWARE
-#ifdef LIBRFID_DEBUG
+#ifdef DEBUG_LIBRFID
const char *
rfid_hexdump(const void *data, unsigned int len)
{
@@ -50,7 +50,7 @@ rfid_hexdump(const void *data, unsigned int len)
}
return string;
}
-#endif/*LIBRFID_DEBUG*/
+#endif/*DEBUG_LIBRFID*/
#else
#define rfid_hexdump(x, y) hexdump(x, y)
#endif
personal git repositories of Harald Welte. Your mileage may vary