Go to the documentation of this file.
28 #define __has_feature(x) 0
32 #ifndef __has_extension
33 #define __has_extension __has_feature
36 #if __GNUC__ >= 6 || \
37 (__has_extension(attribute_deprecated_with_message) && \
38 __has_extension(enumerator_attributes))
39 #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \
40 ENUM MIR_FOR_REMOVAL_IN_VERSION_1("Use " #INSTEAD " instead")
42 #define MIR_DEPRECATED_ENUM(ENUM, INSTEAD) \
266 #define MIR_BYTES_PER_PIXEL(f) ((f) == mir_pixel_format_bgr_888 ? 3 : \
267 (f) == mir_pixel_format_rgb_888 ? 3 : \
268 (f) == mir_pixel_format_rgb_565 ? 2 : \
269 (f) == mir_pixel_format_rgba_5551 ? 2 : \
270 (f) == mir_pixel_format_rgba_4444 ? 2 : \