From 50d2aaf360a53653b718fead8e258d654c3a7e41 Mon Sep 17 00:00:00 2001 From: lieff Date: Sat, 27 Nov 2021 11:39:25 +0300 Subject: [PATCH] Add implementation guard for minimp3_ex.h as well. --- minimp3_ex.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/minimp3_ex.h b/minimp3_ex.h index e29dd15..4ccc596 100644 --- a/minimp3_ex.h +++ b/minimp3_ex.h @@ -128,7 +128,8 @@ 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 static void mp3dec_skip_id3v1(const uint8_t *buf, size_t *pbuf_size) @@ -1391,4 +1392,4 @@ void mp3dec_ex_close(mp3dec_ex_t *dec) } #endif -#endif /*MINIMP3_IMPLEMENTATION*/ +#endif /* MINIMP3_IMPLEMENTATION && !_MINIMP3_EX_IMPLEMENTATION_GUARD */