From 1bc92cdc7853498678c6eb8390769aca90d55908 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 29 Dec 2021 12:12:22 -0500 Subject: [PATCH] [aubio_priv.h] move windows hack strncasecmp define here --- src/aubio_priv.h | 4 ++++ src/utils/strutils.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.11.0