zapret2-fork/nfq2/winnative/luajit_compat.h
loop-uh 5e1409131e winws2: native windows build without cygwin1.dll
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>
2026-10-07 16:26:52 +03:00

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