summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-10-29 01:23:36 +0000
committermeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-10-29 01:23:36 +0000
commit3e18d7e6828cd82bab2be5d653e11f100a00655b (patch)
tree8529a1b041e2f08bd04e70bea4fbc421a9270445
parent76035dde436231f1fd8fd1fe8d4ccf493a3021f6 (diff)
applied Rainer Kellers fix 'Header missing, define name typo'
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2016 e0336214-984f-0b4b-a45f-81c69e1f0ede
-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