diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-08-09 08:41:27 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-08-09 08:42:41 +1000 |
commit | 1123087821b3a2d9d895556ff294f9534292407d (patch) | |
tree | efb1d383aea85fd5301f697007352970e82062a0 /include | |
parent | c3cf5312c1ae666c6c96ada10cf7364ff1a41c98 (diff) | |
download | flac-1123087821b3a2d9d895556ff294f9534292407d.tar.gz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/share/compat.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/share/compat.h b/include/share/compat.h index 1ee5cc4a..671b1107 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -87,7 +87,10 @@ #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__STRNCASECMP strnicmp #else |