summaryrefslogtreecommitdiff
path: root/src/helper/system.h
diff options
context:
space:
mode:
authorAlex Austin <alex.austin@spectrumdsi.com>2010-01-29 00:41:44 -0600
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-01-29 00:02:12 -0800
commitcd3017cffa68e6f56419177e66332f86ab45675b (patch)
tree0c7a94e7a58b23e0763ec9c7ebcf92f07c72bc27 /src/helper/system.h
parent804c0b2ad321247e50910511f691d987d8141081 (diff)
downloadopenocd+libswd-cd3017cffa68e6f56419177e66332f86ab45675b.tar.gz
openocd+libswd-cd3017cffa68e6f56419177e66332f86ab45675b.tar.bz2
openocd+libswd-cd3017cffa68e6f56419177e66332f86ab45675b.tar.xz
openocd+libswd-cd3017cffa68e6f56419177e66332f86ab45675b.zip
Clang buildfixes
Building with clang took a few very small changes. The change to helper/log.h is because clang doesn't like an expression where the result is unused. In helper/system.h, I just defined true and false since clang doesn't have them builtin. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/helper/system.h')
-rw-r--r--src/helper/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helper/system.h b/src/helper/system.h
index af19d018..8ff3532a 100644
--- a/src/helper/system.h
+++ b/src/helper/system.h
@@ -85,4 +85,9 @@
#include <fcntl.h>
#endif
+#ifndef true
+#define true 1
+#define false 0
+#endif
+
#endif // SYSTEM_H