This still requires GCC 6.0 and later to work.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47043
public override void write (CCodeWriter writer) {
writer.write_string (name);
+ if (CCodeModifiers.DEPRECATED in modifiers) {
+ // FIXME Requires GCC 6.0 to work at this place
+ // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47043
+ //writer.write_string (" G_GNUC_DEPRECATED");
+ }
if (value != null) {
writer.write_string (" = ");
value.write (writer);
}
- if (CCodeModifiers.DEPRECATED in modifiers) {
- writer.write_string (" G_GNUC_DEPRECATED");
- }
}
}
[Version (deprecated = true)]
enum FooEnum {
[Version (deprecated = true)]
- BAR,
+ BAR = 0,
+ [Version (deprecated = true)]
+ FOO,
BAZ;
}