Windows compile error fixed. (0.17.1)
This commit is contained in:
parent
945d668ccb
commit
57cf5b9d87
4 changed files with 5 additions and 9 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.16)
|
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 11)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
|
||||||
4
src/vm.c
4
src/vm.c
|
|
@ -19,6 +19,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#ifdef __unix__
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Threading internals (registry and platform glue) */
|
/* Threading internals (registry and platform glue) */
|
||||||
#include "vm/os/thread_common.c"
|
#include "vm/os/thread_common.c"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,6 @@
|
||||||
* Added: 2025-10-02
|
* Added: 2025-10-02
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __unix__
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
case OP_PROC_RUN: {
|
case OP_PROC_RUN: {
|
||||||
/* Pops command string; pushes map {"out": string, "code": int} */
|
/* Pops command string; pushes map {"out": string, "code": int} */
|
||||||
Value cmdv = pop_value(vm);
|
Value cmdv = pop_value(vm);
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,6 @@
|
||||||
* Added: 2025-10-02
|
* Added: 2025-10-02
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __unix__
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
case OP_PROC_SYSTEM: {
|
case OP_PROC_SYSTEM: {
|
||||||
/* Pops command string; pushes exit code number */
|
/* Pops command string; pushes exit code number */
|
||||||
Value cmdv = pop_value(vm);
|
Value cmdv = pop_value(vm);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue