Use __attribute__((format)) in clang too

v0.27.3
Dan Čermák 7 years ago
parent 222c65be63
commit 571f97e277

@ -35,7 +35,7 @@
// + standard includes // + standard includes
#include <string> #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))) #define ATTRIBUTE_FORMAT_PRINTF __attribute__((format(printf, 1, 0)))
#else #else
#define ATTRIBUTE_FORMAT_PRINTF #define ATTRIBUTE_FORMAT_PRINTF

Loading…
Cancel
Save