summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-02-20 23:34:15 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-02-20 23:34:15 +0000
commit4f28f9c0caa10a815d2d875ea41a9197c78fb92b (patch)
treed82c74bd97177a8a987507d343df60d1a6342c3a
parent4fa93397a5524f791d8a3963122fcf3cc4727984 (diff)
Eina: gnu_printf format attribute was introduced in gcc 4.4
SVN revision: 68174
Diffstat (limited to '')
-rw-r--r--legacy/eina/src/include/eina_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/legacy/eina/src/include/eina_types.h b/legacy/eina/src/include/eina_types.h
index 259d238957..b0a7cf864c 100644
--- a/legacy/eina/src/include/eina_types.h
+++ b/legacy/eina/src/include/eina_types.h
@@ -124,7 +124,11 @@
124# endif 124# endif
125 125
126# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) 126# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
127# define EINA_PRINTF(fmt, arg) __attribute__((__format__ (__gnu_printf__, fmt, arg))) 127# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3)
128# define EINA_PRINTF(fmt, arg) __attribute__((__format__ (__gnu_printf__, fmt, arg)))
129# else
130# define EINA_PRINTF(fmt, arg) __attribute__((__format__ (__printf__, fmt, arg)))
131# endif
128# define EINA_SCANF(fmt, arg) __attribute__((__format__ (__scanf__, fmt, arg))) 132# define EINA_SCANF(fmt, arg) __attribute__((__format__ (__scanf__, fmt, arg)))
129# define EINA_FORMAT(fmt) __attribute__((__format_arg__(fmt))) 133# define EINA_FORMAT(fmt) __attribute__((__format_arg__(fmt)))
130# define EINA_CONST __attribute__((__const__)) 134# define EINA_CONST __attribute__((__const__))