summaryrefslogtreecommitdiff
path: root/thirdparty/minimp3/minimp3_ex.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-01 16:13:07 +0100
committerGitHub <noreply@github.com>2021-12-01 16:13:07 +0100
commitdc4b8f8487f0fd3763fc7bfbeffee7bb69ea16be (patch)
tree0cb162c55f63ad1faad2722f31b1aa868cd7fbba /thirdparty/minimp3/minimp3_ex.h
parentfe6ff611302d80ae68f86eb57c1b7d3f6bf29ad0 (diff)
parent2d0068d1cb658d6b600fdc3f9ae02fe56338297c (diff)
Merge pull request #55502 from DeleteSystem32/mp3_fixes
Diffstat (limited to 'thirdparty/minimp3/minimp3_ex.h')
-rw-r--r--thirdparty/minimp3/minimp3_ex.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/thirdparty/minimp3/minimp3_ex.h b/thirdparty/minimp3/minimp3_ex.h
index e29dd15b2e..2871705df3 100644
--- a/thirdparty/minimp3/minimp3_ex.h
+++ b/thirdparty/minimp3/minimp3_ex.h
@@ -6,6 +6,7 @@
This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
+#include <stddef.h>
#include "minimp3.h"
/* flags for mp3dec_ex_open_* functions */
@@ -128,8 +129,10 @@ int mp3dec_ex_open_w(mp3dec_ex_t *dec, const wchar_t *file_name, int flags);
#endif
#endif /*MINIMP3_EXT_H*/
-#ifdef MINIMP3_IMPLEMENTATION
+#if defined(MINIMP3_IMPLEMENTATION) && !defined(_MINIMP3_EX_IMPLEMENTATION_GUARD)
+#define _MINIMP3_EX_IMPLEMENTATION_GUARD
#include <limits.h>
+#include "minimp3.h"
static void mp3dec_skip_id3v1(const uint8_t *buf, size_t *pbuf_size)
{
@@ -1391,4 +1394,4 @@ void mp3dec_ex_close(mp3dec_ex_t *dec)
}
#endif
-#endif /*MINIMP3_IMPLEMENTATION*/
+#endif /* MINIMP3_IMPLEMENTATION && !_MINIMP3_EX_IMPLEMENTATION_GUARD */