$NetBSD: patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp,v 1.1 2022/07/21 23:56:39 nia Exp $

Fix build where _LITTLE_ENDIAN is not an integer.

--- gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp.orig	2019-07-06 01:48:31.000000000 +0000
+++ gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp
@@ -91,8 +91,8 @@ on big endian machines, or a byte-by-byt
 /* gcc 'may' define __LITTLE_ENDIAN__ or __BIG_ENDIAN__ to 1 (Note the trailing __),
  * or even _LITTLE_ENDIAN or _BIG_ENDIAN (Note the single _ prefix) */
 #if !defined(__BYTE_ORDER)
-#    if defined(__LITTLE_ENDIAN__) && __LITTLE_ENDIAN__ == 1 || \
-        defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN == 1
+#    if defined(__LITTLE_ENDIAN__) && __LITTLE_ENDIAN__-0 == 1 || \
+        defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN-0 == 1
 #        define __BYTE_ORDER __LITTLE_ENDIAN
 #    elif defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ == 1 || defined(_BIG_ENDIAN) && _BIG_ENDIAN == 1
 #        define __BYTE_ORDER __BIG_ENDIAN
