mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
thirdparty: fix compilation of programs using miniz.h on macos
This commit is contained in:
parent
5fcfc27e50
commit
26c560bc82
2 changed files with 9 additions and 2 deletions
|
@ -402,6 +402,13 @@ fn get_all_commands() []Command {
|
|||
rmfile: 'v.c'
|
||||
}
|
||||
}
|
||||
$if linux || macos {
|
||||
res << Command{
|
||||
line: '${vexe} -gc none -no-retry-compilation -cc tcc -d use_openssl -showcc examples/veb/todo/main.v'
|
||||
okmsg: 'A simple veb app, compiles with `-gc none -no-retry-compilation -cc tcc -d use_openssl` on macos and linux'
|
||||
rmfile: 'examples/veb/todo/main'
|
||||
}
|
||||
}
|
||||
$if linux {
|
||||
res << Command{
|
||||
line: '${vexe} vlib/v/tests/bench/bench_stbi_load.v && prlimit -v10485760 vlib/v/tests/bench/bench_stbi_load'
|
||||
|
|
4
thirdparty/zip/miniz.h
vendored
4
thirdparty/zip/miniz.h
vendored
|
@ -5026,7 +5026,7 @@ static int mz_mkdir(const char *pDirname) {
|
|||
}
|
||||
|
||||
#ifndef MINIZ_NO_TIME
|
||||
#if (defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
|
||||
#if ( defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
|
||||
#include <utime.h>
|
||||
#else
|
||||
#include <sys/utime.h>
|
||||
|
@ -5073,7 +5073,7 @@ static int mz_mkdir(const char *pDirname) {
|
|||
|
||||
#elif defined(__TINYC__)
|
||||
#ifndef MINIZ_NO_TIME
|
||||
#if (defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
|
||||
#if ( defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
|
||||
#include <utime.h>
|
||||
#else
|
||||
#include <sys/utime.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue