We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ae8451 commit 1a7ee21Copy full SHA for 1a7ee21
libc-test/build.rs
@@ -2257,6 +2257,10 @@ fn test_linux(target: &str) {
2257
let mut cfg = ctest::TestGenerator::new();
2258
// FIXME: still necessary?
2259
cfg.define("_GNU_SOURCE", None);
2260
+ // This macro re-deifnes fscanf,scanf,sscanf to link to the symbols that are
2261
+ // deprecated since glibc >= 2.29. This allows Rust binaries to link against
2262
+ // glibc versions older than 2.29.
2263
+ cfg.define("DEPRECATED_SCANF", None);
2264
2265
2266
cfg.flag("-Wno-deprecated-declarations");
0 commit comments