projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
860f002
)
ext: clang fix for flexible array members
author
Mitch Hayenga
<mitch.hayenga@arm.com>
Wed, 13 Aug 2014 10:57:19 +0000
(06:57 -0400)
committer
Mitch Hayenga
<mitch.hayenga@arm.com>
Wed, 13 Aug 2014 10:57:19 +0000
(06:57 -0400)
Changes how flexible array members are defined so clang does not error
out during compilation.
ext/dnet/os.h
patch
|
blob
|
history
diff --git
a/ext/dnet/os.h
b/ext/dnet/os.h
index cae244781faf9aaf2f9427aabb729322864ed20a..075f94b2cfdb7f3b6122f78c7e0fc8edb0a2cfa9 100644
(file)
--- a/
ext/dnet/os.h
+++ b/
ext/dnet/os.h
@@
-98,7
+98,8
@@
/* Support for flexible arrays. */
#undef __flexarr
-#if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97))
+#if !defined(__clang__) && defined(__GNUC__) && \
+ ((__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97))
/* GCC 2.97 supports C99 flexible array members. */
# define __flexarr []
#else