diff options
| author | greenpine82 <greenpine82@gmail.com> | 2026-01-25 18:52:59 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-25 18:52:59 +0700 |
| commit | 884b5f6840b0de3099199fb161561cf037149faf (patch) | |
| tree | 21b6f2edce841c8627d67742204cacb592015c0c /src | |
| parent | 6a45f6a640dc8f7b5f9819d22d68cd79fbe3c260 (diff) | |
Add realpath macro for MinGW compatibility
Add realpath macro for MinGW compatibility
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser/parser_stmt.c | 4 |
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); |
