1
0
Fork 0
forked from fun/fun

Windows MSVC compile fix. (0.26.5)

This commit is contained in:
Johannes Findeisen 2025-10-09 01:15:35 +02:00
commit 323ea523e1
2 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(fun VERSION 0.26.4 LANGUAGES C)
project(fun VERSION 0.26.5 LANGUAGES C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)

View file

@ -9,6 +9,14 @@
* Added: 2025-10-02
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#define popen _popen
#define pclose _pclose
#endif
case OP_PROC_RUN: {
/* Pops command string; pushes map {"out": string, "code": int} */
Value cmdv = pop_value(vm);