aboutsummaryrefslogtreecommitdiff
path: root/ports/itpp/fix-linux.patch
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-08-02 08:54:45 +0800
committerPhil Christensen <philc@microsoft.com>2019-08-01 17:54:45 -0700
commitbacbcf3527390ae7d20cd9660d82a180f2c8e065 (patch)
tree1dee3a182b8762b3a31ac6be6b01248b7c422f05 /ports/itpp/fix-linux.patch
parented7822f5af596076143fe0d89bb1dba04ef26c8f (diff)
downloadvcpkg-bacbcf3527390ae7d20cd9660d82a180f2c8e065.tar.gz
vcpkg-bacbcf3527390ae7d20cd9660d82a180f2c8e065.zip
[manyports]Regenerate patches and modify how the patches are used. (#7484)
* [ccfits]Regenerate patches and modify how the patches are used. * [itpp]Regenerate patches and modify how the patches are used. * [mpg123]Regenerate patches and modify how the patches are used. * [qwt]Regenerate patches and modify how the patches are used. * [sdl1]Remove a patche and modify how the patches are used.
Diffstat (limited to 'ports/itpp/fix-linux.patch')
-rw-r--r--ports/itpp/fix-linux.patch10
1 files changed, 7 insertions, 3 deletions
diff --git a/ports/itpp/fix-linux.patch b/ports/itpp/fix-linux.patch
index 5e7bb64c0..18b66af5f 100644
--- a/ports/itpp/fix-linux.patch
+++ b/ports/itpp/fix-linux.patch
@@ -1,13 +1,17 @@
diff --git a/itpp/base/random_dsfmt.h b/itpp/base/random_dsfmt.h
-index ccbf182..a3d5472 100644
+index ccbf182..de819fb 100644
--- a/itpp/base/random_dsfmt.h
+++ b/itpp/base/random_dsfmt.h
-@@ -299,7 +299,7 @@ private:
+@@ -299,7 +299,12 @@ 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;
++
++#ifdef __linux__
+#define SSE2_SHUFF 0x1bU
++#else
+ const unsigned int SSE2_SHUFF = 0x1bU;
++#endif
__m128i x = a->si;
__m128i z = _mm_slli_epi64(x, SL1);