From: oharboe Date: Tue, 25 Aug 2009 06:45:40 +0000 (+0000) Subject: add missing isblank() for eCos X-Git-Tag: v0.3.0-rc0~344 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ed5f5afd95746db72c071a5373981d79cd49c11;p=openocd add missing isblank() for eCos git-svn-id: svn://svn.berlios.de/openocd/trunk@2607 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- 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