42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From 1ae068333558eec65a11e575d3c08111efd85938 Mon Sep 17 00:00:00 2001
|
|
From: Oskari Alaranta <oskari.alaranta@bananymous.com>
|
|
Date: Mon, 22 Jun 2026 21:21:36 +0300
|
|
Subject: [PATCH] include alloca.h
|
|
|
|
---
|
|
src/runner.c | 4 ++++
|
|
vendor/stb/vorbis/stb_vorbis.c | 2 +-
|
|
2 files changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/runner.c b/src/runner.c
|
|
index 411ccf5..24110c1 100644
|
|
--- a/src/runner.c
|
|
+++ b/src/runner.c
|
|
@@ -17,6 +17,10 @@
|
|
#include "gettime.h"
|
|
#include "stb_ds.h"
|
|
|
|
+#ifdef __banan_os__
|
|
+#include <alloca.h>
|
|
+#endif
|
|
+
|
|
// ===[ Runtime Layer Teardown Helpers ]===
|
|
void Runner_freeRuntimeLayer(RuntimeLayer* runtimeLayer) {
|
|
free(runtimeLayer->dynamicName);
|
|
diff --git a/vendor/stb/vorbis/stb_vorbis.c b/vendor/stb/vorbis/stb_vorbis.c
|
|
index 0af6406..d35822e 100644
|
|
--- a/vendor/stb/vorbis/stb_vorbis.c
|
|
+++ b/vendor/stb/vorbis/stb_vorbis.c
|
|
@@ -588,7 +588,7 @@ enum STBVorbisError
|
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
|
#include <malloc.h>
|
|
#endif
|
|
- #if defined(__linux__) || defined(__linux) || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__)
|
|
+ #if defined(__linux__) || defined(__linux) || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__) || defined(__banan_os__)
|
|
#include <alloca.h>
|
|
#endif
|
|
#else // STB_VORBIS_NO_CRT
|
|
--
|
|
2.54.0
|
|
|