Skip to content
Snippets Groups Projects
Commit 1a7ee21a authored by gnzlbg's avatar gnzlbg
Browse files

Define DEPRECATED_SCANF macro to use older scanf,sscanf,fscanf symbols

parent 0ae84518
No related branches found
No related tags found
No related merge requests found
......@@ -2257,6 +2257,10 @@ fn test_linux(target: &str) {
let mut cfg = ctest::TestGenerator::new();
// FIXME: still necessary?
cfg.define("_GNU_SOURCE", None);
// This macro re-deifnes fscanf,scanf,sscanf to link to the symbols that are
// deprecated since glibc >= 2.29. This allows Rust binaries to link against
// glibc versions older than 2.29.
cfg.define("DEPRECATED_SCANF", None);
// FIXME: still necessary?
cfg.flag("-Wno-deprecated-declarations");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment