summaryrefslogtreecommitdiff
path: root/1198.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-14 03:04:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-14 03:04:49 +0000
commitc7ce84c1d067a19220abb6dbbf87c4118a2e14fe (patch)
tree21b3d6375c71d5a9930c021fbde26f0c4bf4ec92 /1198.patch
parent2fc16999fe6f92aead8f85c10ce3451da4c7eabd (diff)
automatic import of stbopeneuler23.03
Diffstat (limited to '1198.patch')
-rw-r--r--1198.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/1198.patch b/1198.patch
new file mode 100644
index 0000000..b94d2be
--- /dev/null
+++ b/1198.patch
@@ -0,0 +1,24 @@
+From f9a5eaee846f1a19fbcda2f5adb5238a94cbbc2f Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Tue, 24 Aug 2021 11:45:48 -0400
+Subject: [PATCH] Fix signature of dummy realloc() for STB_VORBIS_NO_CRT
+
+---
+ stb_vorbis.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/stb_vorbis.c b/stb_vorbis.c
+index 3e5c2504c..c1703426e 100644
+--- a/stb_vorbis.c
++++ b/stb_vorbis.c
+@@ -594,8 +594,8 @@ enum STBVorbisError
+ #else // STB_VORBIS_NO_CRT
+ #define NULL 0
+ #define malloc(s) 0
+- #define free(s) ((void) 0)
+- #define realloc(s) 0
++ #define free(p) ((void) 0)
++ #define realloc(p, s) 0
+ #endif // STB_VORBIS_NO_CRT
+
+ #include <limits.h>