aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/a_embedfilesdir.c14
-rw-r--r--src/u_io.c4
2 files changed, 14 insertions, 4 deletions
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);