122
123 #else /* __ATTRIBUTE_IMPLEMENTED || __GNUC__ */
124
125 #define __sun_attr__(__a)
126
127 #endif /* __ATTRIBUTE_IMPLEMENTED || __GNUC__ */
128
129 /*
130 * Shorthand versions for readability
131 */
132
133 #define __PRINTFLIKE(__n) __sun_attr__((__PRINTFLIKE__(__n)))
134 #define __VPRINTFLIKE(__n) __sun_attr__((__VPRINTFLIKE__(__n)))
135 #define __KPRINTFLIKE(__n) __sun_attr__((__KPRINTFLIKE__(__n)))
136 #define __KVPRINTFLIKE(__n) __sun_attr__((__KVPRINTFLIKE__(__n)))
137 #define __NORETURN __sun_attr__((__noreturn__))
138 #define __GNU_INLINE __inline__ __sun_attr__((__gnu_inline__))
139 #define __RETURNS_TWICE __sun_attr__((__returns_twice__))
140 #define __CONST __sun_attr__((__const__))
141 #define __PURE __sun_attr__((__pure__))
142
143 #ifdef __cplusplus
144 }
145 #endif
146
147 #endif /* _SYS_CCOMPILE_H */
|
122
123 #else /* __ATTRIBUTE_IMPLEMENTED || __GNUC__ */
124
125 #define __sun_attr__(__a)
126
127 #endif /* __ATTRIBUTE_IMPLEMENTED || __GNUC__ */
128
129 /*
130 * Shorthand versions for readability
131 */
132
133 #define __PRINTFLIKE(__n) __sun_attr__((__PRINTFLIKE__(__n)))
134 #define __VPRINTFLIKE(__n) __sun_attr__((__VPRINTFLIKE__(__n)))
135 #define __KPRINTFLIKE(__n) __sun_attr__((__KPRINTFLIKE__(__n)))
136 #define __KVPRINTFLIKE(__n) __sun_attr__((__KVPRINTFLIKE__(__n)))
137 #define __NORETURN __sun_attr__((__noreturn__))
138 #define __GNU_INLINE __inline__ __sun_attr__((__gnu_inline__))
139 #define __RETURNS_TWICE __sun_attr__((__returns_twice__))
140 #define __CONST __sun_attr__((__const__))
141 #define __PURE __sun_attr__((__pure__))
142 #define __GNU_UNUSED __attribute__((__unused__))
143
144 #ifdef __cplusplus
145 }
146 #endif
147
148 #endif /* _SYS_CCOMPILE_H */
|