Changeset 989 for vendor/current/lib/util/attr.h
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/util/attr.h
r988 r989 36 36 37 37 #ifndef _DEPRECATED_ 38 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )38 #ifdef HAVE___ATTRIBUTE__ 39 39 #define _DEPRECATED_ __attribute__ ((deprecated)) 40 40 #else … … 44 44 45 45 #ifndef _WARN_UNUSED_RESULT_ 46 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )46 #ifdef HAVE___ATTRIBUTE__ 47 47 #define _WARN_UNUSED_RESULT_ __attribute__ ((warn_unused_result)) 48 48 #else … … 52 52 53 53 #ifndef _NORETURN_ 54 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )54 #ifdef HAVE___ATTRIBUTE__ 55 55 #define _NORETURN_ __attribute__ ((noreturn)) 56 56 #else … … 60 60 61 61 #ifndef _PURE_ 62 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)62 #ifdef HAVE___ATTRIBUTE__ 63 63 #define _PURE_ __attribute__((pure)) 64 64 #else … … 68 68 69 69 #ifndef NONNULL 70 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)70 #ifdef HAVE___ATTRIBUTE__ 71 71 #define NONNULL(param) param __attribute__((nonnull)) 72 72 #else … … 76 76 77 77 #ifndef PRINTF_ATTRIBUTE 78 #if __GNUC__ >= 378 #ifdef HAVE___ATTRIBUTE__ 79 79 /** Use gcc attribute to check printf fns. a1 is the 1-based index of 80 80 * the parameter containing the format, and a2 the index of the first … … 88 88 89 89 #ifndef FORMAT_ATTRIBUTE 90 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)90 #ifdef HAVE___ATTRIBUTE__ 91 91 /** Use gcc attribute to check printf fns. a1 is argument to format() 92 92 * in the above macro. This is needed to support Heimdal's printf 93 93 * decorations. Note that some gcc 2.x versions don't handle this 94 * properly , and as such I've used the same minimum from heimdal: GCC 3.1**/94 * properly. **/ 95 95 #define FORMAT_ATTRIBUTE(a) __attribute__ ((format a)) 96 96 #else
Note:
See TracChangeset
for help on using the changeset viewer.