freebsd-ports/games/freecell-solver/files/patch-xxHash-wrapper_xxHash-0.7.2_xxh3.h
Piotr Kubaj d595550c2f games/freecell-solver: fix build on powerpc64le
Error:
/wrkdirs/usr/ports/games/freecell-solver/work/freecell-solver-6.0.1/xxHash-wrapper/xxHash-0.7.2/xxh3.h:627:32: warning: implicit declaration of function 'vec_vsx_ld' is invalid in C99 [-Wimplicit-function-declaration]
        U64x2 const data_vec = vec_vsx_ld(0, xinput + i);
2020-10-23 14:23:11 +00:00

14 lines
504 B
C

--- xxHash-wrapper/xxHash-0.7.2/xxh3.h.orig 2020-06-13 11:40:25 UTC
+++ xxHash-wrapper/xxHash-0.7.2/xxh3.h
@@ -159,8 +159,10 @@
/* VSX stuff. It's a lot because VSX support is mediocre across compilers and
* there is a lot of mischief with endianness. */
#if XXH_VECTOR == XXH_VSX
-# include <altivec.h>
+# undef bool
# undef vector
+# include <altivec.h>
+# define bool _Bool
typedef __vector unsigned long long U64x2;
typedef __vector unsigned char U8x16;
typedef __vector unsigned U32x4;