Header missing, define name typo

Rainer Keller mail at rainerkeller.de
Fri May 4 16:48:06 CEST 2007


Hi,

after svn up from today I have problems compiling librfid.

The compiler complains about ?printf functions used without declaration and
there is a possible name typo in defines. One time the define is called 
DEBUG_LIBRFID the other time LIBRFID_DEBUG.

In my case the following patch solves the problems:

Index: include/librfid/rfid.h
===================================================================
--- include/librfid/rfid.h      (revision 1996)
+++ include/librfid/rfid.h      (working copy)
@@ -3,6 +3,7 @@

 #include <stddef.h>
 #include <sys/types.h>
+#include <stdio.h>

 #ifdef  __MINGW32__
 #define ENOTSUP         100

Index: src/rfid.c
===================================================================
--- src/rfid.c  (revision 1996)
+++ src/rfid.c  (working copy)
@@ -33,7 +33,7 @@
 #endif

 #ifndef LIBRFID_FIRMWARE
-#ifdef  LIBRFID_DEBUG
+#ifdef  DEBUG_LIBRFID
 const char *
 rfid_hexdump(const void *data, unsigned int len)
 {
@@ -50,7 +50,7 @@
        }
        return string;
 }
-#endif/*LIBRFID_DEBUG*/
+#endif/*DEBUG_LIBRFID*/
 #else
 #define rfid_hexdump(x, y) hexdump(x, y)
 #endif



More information about the librfid-devel mailing list