[aubio_priv.h] move windows hack strncasecmp define here feature/crepe
authorPaul Brossier <piem@piem.org>
Wed, 29 Dec 2021 17:12:22 +0000 (12:12 -0500)
committerPaul Brossier <piem@piem.org>
Wed, 29 Dec 2021 17:14:14 +0000 (12:14 -0500)
src/aubio_priv.h
src/utils/strutils.c

index 6aee913..1a8b6a0 100644 (file)
@@ -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
 
index 8b695ff..f00f403 100644 (file)
 
 #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