Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Lipe
b1d9a69672
Merge pull request #77 from barracuda156/apple
util.c: add missing header, fixes macOS build
2025-08-01 20:58:29 -05:00
Sergey Fedorov
372e76d580 util.c: add missing header, fixes macOS build 2025-08-02 09:17:23 +08:00

View File

@ -10,6 +10,7 @@
// to free an allocated buffer on the caller.nn
#include <stdlib.h>
#include <mach-o/dyld.h>
static void util_get_executable_path(char* buffer_out, uint32_t max_size) {
assert(max_size >= PATH_MAX); // n.b. 1024 on MacOS. 4K on most Linux.