From eaf545e24c009e308b9463d3c521c28621477b8f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 15 Jul 2019 19:50:56 -0400 Subject: fix build on windows --- src/buffer.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/buffer.hpp') diff --git a/src/buffer.hpp b/src/buffer.hpp index d4a911fc21..d7254c18a7 100644 --- a/src/buffer.hpp +++ b/src/buffer.hpp @@ -136,11 +136,21 @@ static inline bool buf_eql_mem(Buf *buf, const char *mem, size_t mem_len) { return mem_eql_mem(buf_ptr(buf), buf_len(buf), mem, mem_len); } +static inline bool buf_eql_mem_ignore_case(Buf *buf, const char *mem, size_t mem_len) { + assert(buf->list.length); + return mem_eql_mem_ignore_case(buf_ptr(buf), buf_len(buf), mem, mem_len); +} + static inline bool buf_eql_str(Buf *buf, const char *str) { assert(buf->list.length); return buf_eql_mem(buf, str, strlen(str)); } +static inline bool buf_eql_str_ignore_case(Buf *buf, const char *str) { + assert(buf->list.length); + return buf_eql_mem_ignore_case(buf, str, strlen(str)); +} + static inline bool buf_starts_with_mem(Buf *buf, const char *mem, size_t mem_len) { if (buf_len(buf) < mem_len) { return false; -- cgit v1.2.3