Compare commits

...

2 Commits

Author SHA1 Message Date
William Bell
b3ee64d294 fix windows build 2025-10-21 21:08:27 +01:00
William Bell
e6ec0fa38a fix windows building 2025-10-21 20:57:22 +01:00
2 changed files with 4 additions and 0 deletions

View File

@@ -19,6 +19,9 @@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef _WIN32
#include <windows.h>
#endif
char *get_current_directory() {
char *buffer = NULL;

View File

@@ -23,6 +23,7 @@
#include <malloc.h>
#endif
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
FILE *fmemopen(void *buf, size_t size, const char *mode) {
if (strchr(mode, 'r') == NULL) {
return NULL;