Skip to content

Commit

Permalink
Fix compilation on MSVC
Browse files Browse the repository at this point in the history
strncasecmp() does not exist in MSVC so define it as _strnicmp()
  • Loading branch information
Chocobo1 committed Nov 8, 2017
1 parent 77384f7 commit 259c7f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vorbiscomment/vcomment.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ void close_files(param_t *p, int output_written);

static void _vorbis_comment_rm_tag(vorbis_comment *vc, const char *tag, const char *contents);

#ifdef _MSC_VER
#define strncasecmp _strnicmp
#endif

char *
read_line (FILE *input)
{
Expand Down

0 comments on commit 259c7f3

Please sign in to comment.