From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 7E4931F47C for ; Sat, 7 Jan 2023 22:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1673129719; bh=QkZoehYKYWUD/RT4XwBhgtwbvi5CaqaXc+0++Agnc64=; h=From:To:Subject:Date:From; b=0pSN0etSlYzaR14Z6u4+s4zmKFpxluaCqoWVWt1KKmDWRHf5UZ4G7CAsPVxSKorxp FBvhvux7FUDudYI8LwugfpmTyqya82S8M0Y0f1grghCv1a99pzfL99n81hUEsEEQVY n8HfYnUizXw2ML5nKMTARJEIFOD8vY6bL+nQMpVU= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH] picohttpparser: fix __SSE_4_2__ CPP check Date: Sat, 7 Jan 2023 22:15:19 +0000 Message-Id: <20230107221519.2464788-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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);