mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Fix meson version
This commit is contained in:
parent
901f7f9cb1
commit
be37a40a1a
2
.github/workflows/build-linux.yml
vendored
2
.github/workflows/build-linux.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
# Set a reasonable ccache size
|
||||||
ccache -M 5G || true
|
ccache -M 5G || true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,17 @@
|
||||||
#include "stb_vorbis.c"
|
#include "stb_vorbis.c"
|
||||||
// Fixes strcasecmp in miniaudio
|
// Fixes strcasecmp in miniaudio
|
||||||
// https://stackoverflow.com/questions/31127260/strcasecmp-a-non-standard-function
|
// https://stackoverflow.com/questions/31127260/strcasecmp-a-non-standard-function
|
||||||
int strcasecmp(const char *a, const char *b) {
|
int strcasecmp(const char* a, const char* b) {
|
||||||
int ca, cb;
|
int ca, cb;
|
||||||
do {
|
do {
|
||||||
ca = * (unsigned char *)a;
|
ca = *(unsigned char*)a;
|
||||||
cb = * (unsigned char *)b;
|
cb = *(unsigned char*)b;
|
||||||
ca = tolower(toupper(ca));
|
ca = tolower(toupper(ca));
|
||||||
cb = tolower(toupper(cb));
|
cb = tolower(toupper(cb));
|
||||||
a++;
|
a++;
|
||||||
b++;
|
b++;
|
||||||
} while (ca == cb && ca != '\0');
|
} while (ca == cb && ca != '\0');
|
||||||
return ca - cb;
|
return ca - cb;
|
||||||
}
|
}
|
||||||
#define MINIAUDIO_IMPLEMENTATION
|
#define MINIAUDIO_IMPLEMENTATION
|
||||||
#include "miniaudio.h"
|
#include "miniaudio.h"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue