From 497daffb3ea23d6b5abb4eee3ab52c3d0a42c10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 14 Jun 2017 17:51:52 +0200 Subject: [PATCH] Correctly build on Windows without strcasecmp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #15 Signed-off-by: Michal Čihař --- include/misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/misc.h b/include/misc.h index 8bf4c3d17..e8b859931 100644 --- a/include/misc.h +++ b/include/misc.h @@ -28,6 +28,14 @@ /* PRINTF_STYLE definition */ #include +#include + +#ifndef HAVE_STRCASECMP +#ifdef HAVE_STRICMP +#define strcasecmp _stricmp +#endif +#endif + /** * Copies at most n chars from src to dest, dest will be \0 terminated. */