summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzlago2024-09-02 19:08:39 +0200
committerzlago2024-09-02 19:24:53 +0200
commit156f638c6c16aeae921939c4cebfe43fc0668378 (patch)
tree73d5f939a91111d88c9f9cb3e7d61ae487339f15
parent9c0646f404d5ff2cbda0e967ba5e0b59ff5de6ab (diff)
oops
-rw-r--r--GNUmakefile3
-rw-r--r--src/common/common.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8ef4aec..2a814e1 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,5 @@
#!/usr/bin/env -S gmake -f
-GLAD ?= glad
MKDIR ?= mkdir -p
libs ::= openmpt fluidsynth
@@ -11,6 +10,8 @@ srcs ::= $(wildcard src/modules/*.c src/common/*.c)
objs ::= $(addprefix out/,$(notdir ${srcs:.c=.o}))
deps ::= $(addprefix out/,$(notdir ${srcs:.c=.d}))
+.SECONDARY:
+
.PHONY: all run clean
all: out/mu-SDL2 out/mu-portaudio
diff --git a/src/common/common.c b/src/common/common.c
index 3fb1c6a..5ce79ad 100644
--- a/src/common/common.c
+++ b/src/common/common.c
@@ -18,7 +18,7 @@ int (*file_ext(char *file))(struct blob *, struct userdata *) {
}
struct blob load_file(char const *const name) {
- const size_t START_SIZE = 1;
+ const size_t START_SIZE = 8192;
FILE *file = fopen(name, "rb");
if (file == NULL) {
return (struct blob) {.data = NULL};