summaryrefslogtreecommitdiffstats
path: root/innbbsd/str_decode.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-12 00:53:49 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-12 00:53:49 +0800
commit6610078a22d58184eb6deba40a67dda742954fbe (patch)
tree81feec9fba1f4916d7f8146d7c790bc25af7fdb5 /innbbsd/str_decode.c
parent4c2b88e9c74d936675a4a7a11cb068cab7cbe4f3 (diff)
downloadpttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.gz
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.bz2
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.lz
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.xz
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.tar.zst
pttbbs-6610078a22d58184eb6deba40a67dda742954fbe.zip
make the compiler happy!
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3026 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/str_decode.c')
-rw-r--r--innbbsd/str_decode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/innbbsd/str_decode.c b/innbbsd/str_decode.c
index 4da40bcf..72a1f225 100644
--- a/innbbsd/str_decode.c
+++ b/innbbsd/str_decode.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
+#include <ctype.h> /* isspace() */
#define USE_ICONV 1
/*
@@ -75,17 +76,19 @@ base64_code(int x)
/* judge & decode QP / BASE64 */
/* ----------------------------------------------------- */
-static inline int
+inline int
isreturn(unsigned char c)
{
return c == '\r' || c == '\n';
}
-static inline int
+#if 0 /* in glibc */
+inline int
isspace(unsigned char c)
{
return c == ' ' || c == '\t' || isreturn(c);
}
+#endif
/* static inline */
int