From 0450c6c01493599734bd27a77e67de63b0351d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Mon, 22 Aug 2016 17:13:40 +0200 Subject: [PATCH] stb_vorbis: Do not include on FreeBSD. On FreeBSD, is deprecated. FreeBSD enforces this by making the compilation fail if is included. Both, malloc() and alloca() are provided by , which is already included by stb_vorbis anyway. --- stb_vorbis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_vorbis.c b/stb_vorbis.c index 19459eb..ab42d60 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -553,7 +553,7 @@ enum STBVorbisError #include #include #include -#if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)) +#if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh) || defined(__FreeBSD__)) #include #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) #include