From: Sebastian Schuberth Date: Wed, 11 Sep 2013 16:06:08 GMT Subject: [PATCH] git-compat-util: Avoid strcasecmp() being inlined Message-ID: <523094F0.9000509@gmail.com> This is necessary so that read_mailmap() can obtain a pointer to the function. Signed-off-by: Sebastian Schuberth --- git-compat-util.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/git-compat-util.h b/git-compat-util.h index be1c494..664305c 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -85,6 +85,13 @@ #define _NETBSD_SOURCE 1 #define _SGI_SOURCE 1 +#define __NO_INLINE__ /* do not inline strcasecmp() */ +#include +#ifdef HAVE_STRINGS_H +#include /* for strcasecmp() */ +#endif +#undef __NO_INLINE__ + #ifdef WIN32 /* Both MinGW and MSVC */ #define _WIN32_WINNT 0x0502 #define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */ @@ -99,10 +106,6 @@ #include #include #include -#include -#ifdef HAVE_STRINGS_H -#include /* for strcasecmp() */ -#endif #include #include #ifdef NEEDS_SYS_PARAM_H -- 1.8.3.mingw.1.2.g56240b5.dirty