From 4f2fb9ba5f529890b2a341e30a1c0c978a882e3a Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 23 Mar 2026 12:10:58 +0100 Subject: , test for libc headers --- src/a_embedfilesdir.c | 14 ++++++++++++++ src/u_io.c | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/a_embedfilesdir.c b/src/a_embedfilesdir.c index 64189ef..d07bb87 100644 --- a/src/a_embedfilesdir.c +++ b/src/a_embedfilesdir.c @@ -85,6 +85,20 @@ typedef __builtin_va_list __gnuc_va_list;\n\ #define LDBL_TRUE_MIN 4.94066e-324\n\ ")}, +{"iso646.h", S("\ +#define and &&\ +#define and_eq &=\ +#define bitand &\ +#define bitor |\ +#define compl ~\ +#define not !\ +#define not_eq !=\ +#define or ||\ +#define or_eq |=\ +#define xor ^\ +#define xor_eq ^=\ +")}, + {"stdnoreturn.h", S("\ #define noreturn _Noreturn\n\ ")}, diff --git a/src/u_io.c b/src/u_io.c index f376c98..1dccb9d 100644 --- a/src/u_io.c +++ b/src/u_io.c @@ -857,10 +857,6 @@ openfile(const char **err, MemFile **pf, const char *path) size_t h, id, n = countof(fileht); if (*path == '@' && path[1] == ':') { - /* fast path to rule out filenames we know for sure aren't builtin */ - /* !KEEP SYNC with embedfilesdir */ - if (path[2] != 's' /* std*.h */ - && path[2] != 'f' /* float.h */) return -1; uid.dev = -1; uid.str = path; h = hashs(0, path+2); -- cgit v1.2.3