summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreenpine82 <greenpine82@gmail.com>2026-01-25 18:52:59 +0700
committerGitHub <noreply@github.com>2026-01-25 18:52:59 +0700
commit884b5f6840b0de3099199fb161561cf037149faf (patch)
tree21b6f2edce841c8627d67742204cacb592015c0c
parent6a45f6a640dc8f7b5f9819d22d68cd79fbe3c260 (diff)
Add realpath macro for MinGW compatibility
Add realpath macro for MinGW compatibility
-rw-r--r--src/parser/parser_stmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/parser_stmt.c b/src/parser/parser_stmt.c
index f7c1d32..6c1a3ac 100644
--- a/src/parser/parser_stmt.c
+++ b/src/parser/parser_stmt.c
@@ -12,6 +12,10 @@
#include "zprep_plugin.h"
#include "../codegen/codegen.h"
+#ifdef _WIN32
+#define realpath(N, R) _fullpath((R), (N), PATH_MAX)
+#endif
+
char *curr_func_ret = NULL;
char *run_comptime_block(ParserContext *ctx, Lexer *l);