1
0
Fork 0
forked from fun/fun

Windows compile error fixed. (0.17.1)

This commit is contained in:
Johannes Findeisen 2025-10-02 20:20:45 +02:00
commit 57cf5b9d87
4 changed files with 5 additions and 9 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(fun VERSION 0.17.0 LANGUAGES C)
project(fun VERSION 0.17.1 LANGUAGES C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)

View file

@ -19,6 +19,10 @@
#include <string.h>
#include <stdarg.h>
#ifdef __unix__
#include <sys/wait.h>
#endif
/* Threading internals (registry and platform glue) */
#include "vm/os/thread_common.c"

View file

@ -9,10 +9,6 @@
* Added: 2025-10-02
*/
#ifdef __unix__
#include <sys/wait.h>
#endif
case OP_PROC_RUN: {
/* Pops command string; pushes map {"out": string, "code": int} */
Value cmdv = pop_value(vm);

View file

@ -9,10 +9,6 @@
* Added: 2025-10-02
*/
#ifdef __unix__
#include <sys/wait.h>
#endif
case OP_PROC_SYSTEM: {
/* Pops command string; pushes exit code number */
Value cmdv = pop_value(vm);