diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2018-02-04 09:16:23 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2018-02-04 09:16:23 +0000 |
commit | f074c54f0217028c9244c0d7da2d90625498d3d6 (patch) | |
tree | cac16ba565ffd0ae8bf218159c646749f37de575 /textproc/sphinxsearch/files/patch-src_sphinxstd.h | |
parent | - Switch to new test framework (diff) |
Patches to make the code compatible with clang-6.0 / C++17 -- this will
fix the build on FreeBSD 12.0
- delete the 'register' keyword everywhere
- Add whitespace between adjacent quoted strings
- Update the offsetof() macro to cast the result to int
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=460879
Diffstat (limited to 'textproc/sphinxsearch/files/patch-src_sphinxstd.h')
-rw-r--r-- | textproc/sphinxsearch/files/patch-src_sphinxstd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/sphinxsearch/files/patch-src_sphinxstd.h b/textproc/sphinxsearch/files/patch-src_sphinxstd.h new file mode 100644 index 000000000000..21c1422ebd5e --- /dev/null +++ b/textproc/sphinxsearch/files/patch-src_sphinxstd.h @@ -0,0 +1,11 @@ +--- src/sphinxstd.h.orig 2018-02-03 10:22:51 UTC ++++ src/sphinxstd.h +@@ -274,7 +274,7 @@ inline int sphBitCount ( DWORD n ) + // MIT HACKMEM count + // works for 32-bit numbers only + // fix last line for 64-bit numbers +- register DWORD tmp; ++ DWORD tmp; + tmp = n - ((n >> 1) & 033333333333) - ((n >> 2) & 011111111111); + return ( (tmp + (tmp >> 3) ) & 030707070707) % 63; + } |