From: Paul Brossier Date: Wed, 29 Dec 2021 17:12:22 +0000 (-0500) Subject: [aubio_priv.h] move windows hack strncasecmp define here X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature%2Fcrepe;p=aubio.git [aubio_priv.h] move windows hack strncasecmp define here --- diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 6aee913a..1a8b6a09 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -266,6 +266,10 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...); #define AUBIO_QUIT(_s) exit(_s) #define AUBIO_SPRINTF sprintf +#ifdef HAVE_WIN_HACKS +#define strncasecmp _strnicmp +#endif + #define AUBIO_MAX_SAMPLERATE (192000*8) #define AUBIO_MAX_CHANNELS 1024 diff --git a/src/utils/strutils.c b/src/utils/strutils.c index 8b695ff4..f00f4035 100644 --- a/src/utils/strutils.c +++ b/src/utils/strutils.c @@ -20,10 +20,6 @@ #include "aubio_priv.h" -#ifdef HAVE_WIN_HACKS -#define strncasecmp _strnicmp -#endif - const char_t *aubio_str_get_extension(const char_t *filename) { // find last occurence of dot character