about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-07 22:15:19 +0000
committerEric Wong <mwrap-perl@80x24.org>2023-01-07 22:22:30 +0000
commit4356beb8237a92b3902b17f55cfe93d347b593d5 (patch)
tree57badd76056a6a556aec4f62499d040e67cdb126
parent4c39e1bf35a1ea30b341febdcad2aa1524509eb6 (diff)
downloadmwrap-4356beb8237a92b3902b17f55cfe93d347b593d5.tar.gz
This fixes a `-Wundef' warning with gcc, and `__SSE_4_2__' is a
defined-ness check everywhere else.
-rw-r--r--picohttpparser_c.h2
1 files changed, 1 insertions, 1 deletions
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);