From 0ed5f5afd95746db72c071a5373981d79cd49c11 Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 25 Aug 2009 06:45:40 +0000 Subject: add missing isblank() for eCos git-svn-id: svn://svn.berlios.de/openocd/trunk@2607 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/helper') diff --git a/src/helper/types.h b/src/helper/types.h index 21ff2be2..21a6a337 100644 --- a/src/helper/types.h +++ b/src/helper/types.h @@ -153,6 +153,8 @@ typedef uint64_t uintmax_t; #define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL) +/* C99, eCos is C90 compliant (with bits of C99) */ +#define isblank(c) ((c) == ' ' || (c) == '\t') #endif -- cgit v1.2.3