summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io/read_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/io/read_file.c b/src/io/read_file.c
index b7b1095..e9e4a6a 100644
--- a/src/io/read_file.c
+++ b/src/io/read_file.c
@@ -84,6 +84,8 @@ struct filebuf *file_to_filebuf(char *fname, int openOptions) {
return res;
}
+ // braces are needed until we actually use c23 instead of c2x (only c23 allows
+ // labels before delcarations)
sponge: {
FILE *stream = fdopen(fd, "rb");
struct filebuf *res = stream_to_filebuf(stream, openOptions);