Skip to content

Commit

Permalink
Add implementation guard for minimp3_ex.h as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
lieff committed Nov 27, 2021
1 parent ca7c706 commit 50d2aaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions minimp3_ex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <limits.h>

static void mp3dec_skip_id3v1(const uint8_t *buf, size_t *pbuf_size)
Expand Down Expand Up @@ -1391,4 +1392,4 @@ void mp3dec_ex_close(mp3dec_ex_t *dec)
}
#endif

#endif /*MINIMP3_IMPLEMENTATION*/
#endif /* MINIMP3_IMPLEMENTATION && !_MINIMP3_EX_IMPLEMENTATION_GUARD */

0 comments on commit 50d2aaf

Please sign in to comment.