From 22b45516531456ccfd84eb92037061ce0e2cc751 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 29 Aug 2018 17:54:31 +0200 Subject: Fix clang support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libsimple.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);\ -- cgit v1.2.3-70-g09d2