From be37a40a1a4c021b07f961440758ecfff4aad870 Mon Sep 17 00:00:00 2001 From: Liriosha <57261793+Liriosha@users.noreply.github.com> Date: Thu, 19 Mar 2026 16:24:49 -0400 Subject: [PATCH] Fix meson version --- .github/workflows/build-linux.yml | 2 +- .../Platform/Common/Audio/SoundEngine.cpp | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 745a3b9df..8fb6acb9a 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -32,7 +32,7 @@ jobs: - name: Install system dependencies run: | sudo apt-get update - sudo apt-get install -y build-essential ccache python3 ninja-build meson libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev + sudo apt-get install -y build-essential ccache python3 ninja-build libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev # Set a reasonable ccache size ccache -M 5G || true diff --git a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp index 3054e44af..74206559f 100644 --- a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp +++ b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp @@ -18,17 +18,17 @@ #include "stb_vorbis.c" // Fixes strcasecmp in miniaudio // https://stackoverflow.com/questions/31127260/strcasecmp-a-non-standard-function -int strcasecmp(const char *a, const char *b) { -int ca, cb; -do { - ca = * (unsigned char *)a; - cb = * (unsigned char *)b; - ca = tolower(toupper(ca)); - cb = tolower(toupper(cb)); - a++; - b++; -} while (ca == cb && ca != '\0'); -return ca - cb; +int strcasecmp(const char* a, const char* b) { + int ca, cb; + do { + ca = *(unsigned char*)a; + cb = *(unsigned char*)b; + ca = tolower(toupper(ca)); + cb = tolower(toupper(cb)); + a++; + b++; + } while (ca == cb && ca != '\0'); + return ca - cb; } #define MINIAUDIO_IMPLEMENTATION #include "miniaudio.h"