From 884b5f6840b0de3099199fb161561cf037149faf Mon Sep 17 00:00:00 2001 From: greenpine82 Date: Sun, 25 Jan 2026 18:52:59 +0700 Subject: Add realpath macro for MinGW compatibility Add realpath macro for MinGW compatibility --- src/parser/parser_stmt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3