Windows MSVC compile fix. (0.26.5)
This commit is contained in:
parent
87da9ce03c
commit
323ea523e1
2 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue