Not including libgen.h breaks 64bit builds (probably because the compiler assumes...
authorHenryk Ploetz <ploetz@informatik.hu-berlin.de>
Sat, 9 Jun 2007 22:02:21 +0000 (22:02 +0000)
committerHenryk Ploetz <ploetz@informatik.hu-berlin.de>
Sat, 9 Jun 2007 22:02:21 +0000 (22:02 +0000)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2001 e0336214-984f-0b4b-a45f-81c69e1f0ede

utils/common.c
utils/librfid-tool.c
utils/mifare-tool.c

index b286af6..08c7c1f 100644 (file)
@@ -3,7 +3,10 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-//#include <libgen.h>
+
+#ifndef __MINGW32__
+#include <libgen.h>
+#endif
 
 #include <librfid/rfid.h>
 #include <librfid/rfid_scan.h>
index 020b837..8921444 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-/*#include <libgen.h>*/
+
+#ifndef __MINGW32__
+#include <libgen.h>
+#endif
 
 #define _GNU_SOURCE
 #include <getopt.h>
index 7c3a51e..dd6f148 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-//#include <libgen.h>
+
+#ifndef __MINGW32__
+#include <libgen.h>
+#endif
 
 #define _GNU_SOURCE
 #include <getopt.h>