From 6356142c79c28b37845c85d837531b2fe175c005 Mon Sep 17 00:00:00 2001 From: Connor-GH Date: Fri, 23 Jan 2026 09:41:19 -0600 Subject: [PATCH] stdio.h: add std{in,out,err} macros; regex.h: add REG_MINIMAL macro --- include/bits/stdio.h | 4 ++++ src/header/regex/mod.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/include/bits/stdio.h b/include/bits/stdio.h index 0c14171ce4..63957176c8 100644 --- a/include/bits/stdio.h +++ b/include/bits/stdio.h @@ -9,5 +9,9 @@ typedef struct FILE FILE; // A typedef doesn't suffice, because libgmp uses this definition to check if // STDIO was loaded. #define FILE FILE +// Likewise, stdin, stdout, and stderr are expected to be macros. +#define stdin stdin +#define stdout stdout +#define stderr stderr #endif /* _BITS_STDIO_H */ diff --git a/src/header/regex/mod.rs b/src/header/regex/mod.rs index e73ecb4830..2aa348c27b 100644 --- a/src/header/regex/mod.rs +++ b/src/header/regex/mod.rs @@ -35,6 +35,7 @@ pub const REG_NOSUB: c_int = 4; pub const REG_NEWLINE: c_int = 8; pub const REG_NOTBOL: c_int = 16; pub const REG_NOTEOL: c_int = 32; +pub const REG_MINIMAL: c_int = 64; pub const REG_NOMATCH: c_int = 1; pub const REG_BADPAT: c_int = 2;