From 1b6e20e4976a0c8f404bbb051fc4437f6b916c8b Mon Sep 17 00:00:00 2001 From: ploetz Date: Sat, 9 Jun 2007 22:02:21 +0000 Subject: Not including libgen.h breaks 64bit builds (probably because the compiler assumes a default return type for basename which would be int, which is smaller than char*) git-svn-id: https://svn.gnumonks.org/trunk/librfid@2001 e0336214-984f-0b4b-a45f-81c69e1f0ede --- utils/common.c | 5 ++++- utils/librfid-tool.c | 5 ++++- utils/mifare-tool.c | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/utils/common.c b/utils/common.c index b286af6..08c7c1f 100644 --- a/utils/common.c +++ b/utils/common.c @@ -3,7 +3,10 @@ #include #include #include -//#include + +#ifndef __MINGW32__ +#include +#endif #include #include diff --git a/utils/librfid-tool.c b/utils/librfid-tool.c index 020b837..8921444 100644 --- a/utils/librfid-tool.c +++ b/utils/librfid-tool.c @@ -21,7 +21,10 @@ #include #include #include -/*#include */ + +#ifndef __MINGW32__ +#include +#endif #define _GNU_SOURCE #include diff --git a/utils/mifare-tool.c b/utils/mifare-tool.c index 7c3a51e..dd6f148 100644 --- a/utils/mifare-tool.c +++ b/utils/mifare-tool.c @@ -21,7 +21,10 @@ #include #include #include -//#include + +#ifndef __MINGW32__ +#include +#endif #define _GNU_SOURCE #include -- cgit v1.2.3