forked from enlightenment/efl
* Remove the use of HAVE___ATTRIBUTE__ (which is defined at
configure time) in an exported header. Use only macros defined by the compilers, which is sufficient and simpler. * Add missing EINA_DEPRECATED in some cases. SVN revision: 41199
This commit is contained in:
parent
4d5e99df01
commit
c94a92a174
|
@ -65,6 +65,9 @@
|
|||
#ifdef EINA_ARG_NONNULL
|
||||
# undef EINA_ARG_NONNULL
|
||||
#endif
|
||||
#ifdef EINA_DEPRECATED
|
||||
# undef EINA_DEPRECATED
|
||||
#endif
|
||||
#ifdef EINA_MALLOC
|
||||
# undef EINA_MALLOC
|
||||
#endif
|
||||
|
@ -90,7 +93,7 @@
|
|||
# undef EINA_LIKELY
|
||||
#endif
|
||||
|
||||
#ifdef HAVE___ATTRIBUTE__
|
||||
|
||||
#ifdef __GNUC__
|
||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||
# define EINA_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
|
||||
|
@ -133,18 +136,7 @@
|
|||
# define EINA_UNLIKELY(exp) exp
|
||||
# define EINA_LIKELY(exp) exp
|
||||
# endif
|
||||
# else /* no __GNUC__ */
|
||||
# define EINA_WARN_UNUSED_RESULT
|
||||
# define EINA_ARG_NONNULL(idx, ...)
|
||||
# define EINA_MALLOC
|
||||
# define EINA_PURE
|
||||
# define EINA_PRINTF(fmt, arg)
|
||||
# define EINA_SCANF(fmt, arg)
|
||||
# define EINA_FORMAT(fmt)
|
||||
# define EINA_CONST
|
||||
# define EINA_UNLIKELY(exp) exp
|
||||
# define EINA_LIKELY(exp) exp
|
||||
# endif
|
||||
|
||||
#elif defined(_WIN32)
|
||||
# define EINA_WARN_UNUSED_RESULT
|
||||
# define EINA_ARG_NONNULL(idx, ...)
|
||||
|
@ -161,7 +153,8 @@
|
|||
# define EINA_CONST
|
||||
# define EINA_UNLIKELY(exp) exp
|
||||
# define EINA_LIKELY(exp) exp
|
||||
#else /* no HAVE___ATTRIBUTE__ */
|
||||
|
||||
#else /* ! __GNUC__ && ! _WIN32 */
|
||||
# define EINA_WARN_UNUSED_RESULT
|
||||
# define EINA_ARG_NONNULL(idx, ...)
|
||||
# define EINA_DEPRECATED
|
||||
|
@ -173,7 +166,7 @@
|
|||
# define EINA_CONST
|
||||
# define EINA_UNLIKELY(exp) exp
|
||||
# define EINA_LIKELY(exp) exp
|
||||
#endif
|
||||
#endif /* ! __GNUC__ && ! _WIN32 */
|
||||
|
||||
|
||||
/* remove this TRUE/FALSE redifinitions */
|
||||
|
|
Loading…
Reference in New Issue