Use __attribute__((format)) in clang too

This commit is contained in:
Dan Čermák
2018-03-31 14:02:02 +02:00
parent 222c65be63
commit 571f97e277
+1 -1
View File
@@ -35,7 +35,7 @@
// + standard includes
#include <string>
#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