mwrap (Perl version) user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] picohttpparser: fix __SSE_4_2__ CPP check
@ 2023-01-07 22:15 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-01-07 22:15 UTC (permalink / raw)
  To: mwrap-perl

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);
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-07 22:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07 22:15 [PATCH] picohttpparser: fix __SSE_4_2__ CPP check Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mwrap-perl.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).