summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-01-15 18:35:46 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-01-15 19:06:07 +0100
commitd990ab7dba5a4710fa2189b664af0632b54243b1 (patch)
tree5cf31ab3cf15e45a5913dc43f70d376043721327
parente2ba3328666c55a7cd35b46ac7595fbe6af2e487 (diff)
eina - enable EINA_PRINTF for clang as well as gcc
-rw-r--r--src/lib/eina/eina_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_types.h b/src/lib/eina/eina_types.h
index c049baf..bfdfa7d 100644
--- a/src/lib/eina/eina_types.h
+++ b/src/lib/eina/eina_types.h
@@ -224,6 +224,7 @@
224# define EINA_LIKELY(exp) __builtin_expect((exp), 1) 224# define EINA_LIKELY(exp) __builtin_expect((exp), 1)
225# define EINA_SENTINEL __attribute__((__sentinel__)) 225# define EINA_SENTINEL __attribute__((__sentinel__))
226# ifndef __clang__ 226# ifndef __clang__
227# define EINA_PRINTF(fmt, arg) __attribute__((__format__ (__printf__, fmt, arg)))
227# if __GNUC__ >= 7 228# if __GNUC__ >= 7
228# define EINA_FALLTHROUGH __attribute__ ((fallthrough)); 229# define EINA_FALLTHROUGH __attribute__ ((fallthrough));
229# else 230# else