From fea06605af79832c6abe7a8e6a24c142987994d6 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周二, 22 10月 2013 17:59:45 +0800 Subject: [PATCH] Add more robust detection of case insensitive string compare --- libscpi/src/utils.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libscpi/src/utils.h b/libscpi/src/utils.h index 6d3528f..2ad3f5d 100644 --- a/libscpi/src/utils.h +++ b/libscpi/src/utils.h @@ -68,6 +68,10 @@ size_t BSD_strnlen(const char *s, size_t maxlen); #endif +#if !HAVE_STRNCASECMP && !HAVE_STRNICMP + int OUR_strncasecmp(const char *s1, const char *s2, size_t n); +#endif + #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) -- Gitblit v1.9.1