From 4356beb8237a92b3902b17f55cfe93d347b593d5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 7 Jan 2023 22:15:19 +0000 Subject: picohttpparser: fix __SSE_4_2__ CPP check This fixes a `-Wundef' warning with gcc, and `__SSE_4_2__' is a defined-ness check everywhere else. --- picohttpparser_c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picohttpparser_c.h b/picohttpparser_c.h index 0db7dcb..c5e345d 100644 --- a/picohttpparser_c.h +++ b/picohttpparser_c.h @@ -105,7 +105,7 @@ static const char *token_char_map = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ static const char *findchar_fast(const char *buf, const char *buf_end, const char *ranges, size_t ranges_size, int *found) { *found = 0; -#if __SSE4_2__ +#ifdef __SSE4_2__ if (likely(buf_end - buf >= 16)) { __m128i ranges16 = _mm_loadu_si128((const __m128i *)ranges); -- cgit v1.2.3-24-ge0c7