Commit 11230878 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

Compat: Fix for MSVC deprecated functions

According to MSDN, stricmp and strnicmp functions are deprecated
since MSVC 2005 and _stricmp/_strnicmp should be used instead.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent c3cf5312
...@@ -87,7 +87,10 @@ ...@@ -87,7 +87,10 @@
#define FLAC__U64L(x) x##ULL #define FLAC__U64L(x) x##ULL
#if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ #if defined _MSC_VER || defined __MINGW32__
#define FLAC__STRCASECMP _stricmp
#define FLAC__STRNCASECMP _strnicmp
#elif defined __BORLANDC__
#define FLAC__STRCASECMP stricmp #define FLAC__STRCASECMP stricmp
#define FLAC__STRNCASECMP strnicmp #define FLAC__STRNCASECMP strnicmp
#else #else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment