summaryrefslogtreecommitdiff
path: root/src/helper/types.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-08-25 06:45:40 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-08-25 06:45:40 +0000
commit0ed5f5afd95746db72c071a5373981d79cd49c11 (patch)
treeb0ff88761fd40ae3b5d2829113e4038cf2b54823 /src/helper/types.h
parentbf5f21e39a6c04c3845dc61becc90d8602546290 (diff)
downloadopenocd+libswd-0ed5f5afd95746db72c071a5373981d79cd49c11.tar.gz
openocd+libswd-0ed5f5afd95746db72c071a5373981d79cd49c11.tar.bz2
openocd+libswd-0ed5f5afd95746db72c071a5373981d79cd49c11.tar.xz
openocd+libswd-0ed5f5afd95746db72c071a5373981d79cd49c11.zip
add missing isblank() for eCos
git-svn-id: svn://svn.berlios.de/openocd/trunk@2607 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/types.h')
-rw-r--r--src/helper/types.h2
1 files changed, 2 insertions, 0 deletions
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