Skip to content

Commit 68e0f20

Browse files
committed
glib: Ignore CPP feature constants
1 parent 25e9681 commit 68e0f20

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

glib/sys/Gir.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ ignore = [
6262
"GLib.SIZEOF_VOID_P",
6363
"GLib.VA_COPY_AS_ARRAY",
6464
"GLib.VERSION_MIN_REQUIRED",
65+
"GLib.macro__has_attribute_ifunc",
66+
"GLib.macro__has_attribute_no_sanitize_address",
6567
]
6668

6769
[[object]]

glib/sys/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,6 @@ pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: &[u8] = b":/?#[]@\0";
804804
pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &[u8] = b"!$&'()*+,;=\0";
805805
pub const G_USEC_PER_SEC: c_int = 1000000;
806806
pub const G_WIN32_MSG_HANDLE: c_int = 19981206;
807-
pub const g_macro__has_attribute_ifunc: c_int = 0;
808-
pub const g_macro__has_attribute_no_sanitize_address: c_int = 0;
809807

810808
// Flags
811809
pub type GAsciiType = c_uint;

glib/sys/tests/abi.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,4 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
18831883
),
18841884
("(gint) G_VARIANT_PARSE_ERROR_VALUE_EXPECTED", "17"),
18851885
("G_WIN32_MSG_HANDLE", "19981206"),
1886-
("g_macro__has_attribute_ifunc", "0"),
1887-
("g_macro__has_attribute_no_sanitize_address", "0"),
18881886
];

glib/sys/tests/constant.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,5 @@ int main() {
858858
PRINT_CONSTANT((gint) G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT);
859859
PRINT_CONSTANT((gint) G_VARIANT_PARSE_ERROR_VALUE_EXPECTED);
860860
PRINT_CONSTANT(G_WIN32_MSG_HANDLE);
861-
PRINT_CONSTANT(g_macro__has_attribute_ifunc);
862-
PRINT_CONSTANT(g_macro__has_attribute_no_sanitize_address);
863861
return 0;
864862
}

0 commit comments

Comments
 (0)