Cross compiled by llvm-mingw (nfq2/winnative/build.sh). Upstream sources are not changed: a force-included header emulates the cygwin environment, compat.c replaces the cygwin runtime (utf-8 file api, path conversion, command line and @file parsing identical to cygwin, signals, wordexp). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
346 B
C
9 lines
346 B
C
// force-included into LuaJIT sources. makes io.open, loadfile, os.remove, os.rename work with utf-8 paths
|
|
#pragma once
|
|
#include <stdio.h>
|
|
FILE *wn_fopen(const char *path, const char *mode);
|
|
int wn_unlink(const char *path);
|
|
int wn_rename(const char *from, const char *to);
|
|
#define fopen wn_fopen
|
|
#define remove wn_unlink
|
|
#define rename wn_rename
|