1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Generate Minetest.app on macOS 12, so at least macOS 12 will be supported

This commit is contained in:
sfence
2024-09-06 11:30:27 +02:00
committed by GitHub
parent 3af226cb06
commit 4fd744cdf6
2 changed files with 3 additions and 2 deletions

View File

@@ -29,8 +29,8 @@ on:
jobs: jobs:
build: build:
# use macOS 13 since it's the last one that still runs on x86 # use lowest possible macOS running on x86_64 to support more users
runs-on: macos-13 runs-on: macos-12
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install deps - name: Install deps

View File

@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "SColor.h" #include "SColor.h"
#include <matrix4.h> #include <matrix4.h>
#include <cmath> #include <cmath>
#include <algorithm>
#define rangelim(d, min, max) ((d) < (min) ? (min) : ((d) > (max) ? (max) : (d))) #define rangelim(d, min, max) ((d) < (min) ? (min) : ((d) > (max) ? (max) : (d)))
#define myfloor(x) ((x) < 0.0 ? (int)(x) - 1 : (int)(x)) #define myfloor(x) ((x) < 0.0 ? (int)(x) - 1 : (int)(x))