From 571f97e277b8c4773adef19d7abc5dbb6d5afe3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Sat, 31 Mar 2018 14:02:02 +0200 Subject: [PATCH] Use __attribute__((format)) in clang too --- src/image_int.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image_int.hpp b/src/image_int.hpp index ae2aa9a1..2ab4f4c7 100644 --- a/src/image_int.hpp +++ b/src/image_int.hpp @@ -35,7 +35,7 @@ // + standard includes #include -#if (defined(__GNUG__) || defined(__GNUC__)) && ! defined(__clang__) +#if (defined(__GNUG__) || defined(__GNUC__)) || defined(__clang__) #define ATTRIBUTE_FORMAT_PRINTF __attribute__((format(printf, 1, 0))) #else #define ATTRIBUTE_FORMAT_PRINTF