Changeset 740 for vendor/current/lib/util/attr.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/util/attr.h
r414 r740 28 28 # define UNUSED(param) param 29 29 /** Feel free to add definitions for other compilers here. */ 30 #endif31 32 #ifdef HAVE_VISIBILITY_ATTR33 # define _PUBLIC_ __attribute__((visibility("default")))34 #else35 # define _PUBLIC_36 30 #endif 37 31 … … 88 82 #endif 89 83 84 #ifndef FORMAT_ATTRIBUTE 85 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) 86 /** Use gcc attribute to check printf fns. a1 is argument to format() 87 * in the above macro. This is needed to support Heimdal's printf 88 * decorations. Note that some gcc 2.x versions don't handle this 89 * properly, and as such I've used the same minimum from heimdal: GCC 3.1 **/ 90 #define FORMAT_ATTRIBUTE(a) __attribute__ ((format a)) 91 #else 92 #define FORMAT_ATTRIBUTE(a) 93 #endif 94 #endif 95 90 96 #endif /* __UTIL_ATTR_H__ */
Note:
See TracChangeset
for help on using the changeset viewer.