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) \
200 #define MIR_BYTES_PER_PIXEL(f) ((f) == mir_pixel_format_bgr_888 ? 3 : \
201 (f) == mir_pixel_format_rgb_888 ? 3 : \
202 (f) == mir_pixel_format_rgb_565 ? 2 : \
203 (f) == mir_pixel_format_rgba_5551 ? 2 : \
204 (f) == mir_pixel_format_rgba_4444 ? 2 : \
401 #pragma GCC diagnostic push
402 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
411 #pragma GCC diagnostic pop