fix: windows build, added visual studio project files

This commit is contained in:
2024-01-21 20:29:07 +01:00
parent 85c3c2cbc9
commit d0863e8e66
13 changed files with 486 additions and 3 deletions

View File

@@ -16,8 +16,13 @@ void api_put() {
if (mode != 1 && mode != 2) return;
int f = fstream;
#ifdef _WIN32
if (f == _fileno(stderr))
f = _fileno(stdout);
#else
if (f == fileno(stderr))
f = fileno(stdout);
f = fileno(stdout);
#endif
if (mode == 1) {
char c = state->STACK[state->STACK_IDX--];