aboutsummaryrefslogtreecommitdiffstats
path: root/libsimple.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-29 17:54:31 +0200
committerMattias Andrée <maandree@kth.se>2018-08-29 17:54:31 +0200
commit22b45516531456ccfd84eb92037061ce0e2cc751 (patch)
treedae2ed7a56956876d214459a64d9ad5ec1924733 /libsimple.h
parentCircumvent GCC bugs in test code when optimised (diff)
downloadlibsimple-22b45516531456ccfd84eb92037061ce0e2cc751.tar.gz
libsimple-22b45516531456ccfd84eb92037061ce0e2cc751.tar.bz2
libsimple-22b45516531456ccfd84eb92037061ce0e2cc751.tar.xz
Fix clang support
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libsimple.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsimple.h b/libsimple.h
index 1d8abf5..1811233 100644
--- a/libsimple.h
+++ b/libsimple.h
@@ -626,7 +626,7 @@ int libsimple_vasprintf(char **, const char *, va_list);
# define vasprintf libsimple_vasprintf
#endif
-#if defined(__GNUC__) && !defined(__clang__)
+#if defined(__GNUC__) || defined(__clang__)
# define libsimple_asprintfa(__fmt, ...)\
({\
const char *__f = (__fmt);\