diff options
| author | NancyLi1013 <lirui09@beyondsoft.com> | 2019-05-29 19:21:29 -0700 |
|---|---|---|
| committer | NancyLi1013 <lirui09@beyondsoft.com> | 2019-05-29 19:21:53 -0700 |
| commit | 7f3e185316f2c96cfc3e1168e30c9f6662e8f130 (patch) | |
| tree | 2bbb14efa8fac8471951d2b46a80d830e91267ea /ports/itpp/fix-linux.patch | |
| parent | 668c960d8a2502bfffa861fb56179f56dc1b039c (diff) | |
| download | vcpkg-7f3e185316f2c96cfc3e1168e30c9f6662e8f130.tar.gz vcpkg-7f3e185316f2c96cfc3e1168e30c9f6662e8f130.zip | |
fix the port build failed on Linux(Ubuntu 18.04).
Diffstat (limited to 'ports/itpp/fix-linux.patch')
| -rw-r--r-- | ports/itpp/fix-linux.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/itpp/fix-linux.patch b/ports/itpp/fix-linux.patch new file mode 100644 index 000000000..5e7bb64c0 --- /dev/null +++ b/ports/itpp/fix-linux.patch @@ -0,0 +1,13 @@ +diff --git a/itpp/base/random_dsfmt.h b/itpp/base/random_dsfmt.h +index ccbf182..a3d5472 100644 +--- a/itpp/base/random_dsfmt.h ++++ b/itpp/base/random_dsfmt.h +@@ -299,7 +299,7 @@ private: + */ + static void do_recursion(typename Context::w128_t *r, typename Context::w128_t *a, typename Context::w128_t *b, typename Context::w128_t *lung) { + #if defined(__SSE2__) +- const unsigned int SSE2_SHUFF = 0x1bU; ++#define SSE2_SHUFF 0x1bU + + __m128i x = a->si; + __m128i z = _mm_slli_epi64(x, SL1); |
