diff options
author | Milan P. Stanić <mps@arvanta.net> | 2019-09-24 21:53:02 +0200 |
---|---|---|
committer | Milan P. Stanić <mps@arvanta.net> | 2019-09-24 22:00:55 +0200 |
commit | 4bd74f059f0f1329481cde93c3aedac1a90f76e6 (patch) | |
tree | 9d400dd65c8747b571e904637507bb5f187e58b3 /community/glm/fix-endian-test.patch | |
parent | dcbab5a0af6934621e5ea40391800dfcb7844c12 (diff) | |
download | aports-4bd74f059f0f1329481cde93c3aedac1a90f76e6.tar.bz2 aports-4bd74f059f0f1329481cde93c3aedac1a90f76e6.tar.xz |
community/glm: upgrade to 0.9.9.6
remove fix-const-expr.patch, fixed upstream
fix CRLF to LF in fix-endian-test.patch
use 'cp' in package(), upstream removed 'make install'
add pkgconfig glm.pc from previous version, upstream removed it
add -doc subpackage
fix source url
Diffstat (limited to 'community/glm/fix-endian-test.patch')
-rw-r--r-- | community/glm/fix-endian-test.patch | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/community/glm/fix-endian-test.patch b/community/glm/fix-endian-test.patch index 7ae44dc96c..ba2cce4b68 100644 --- a/community/glm/fix-endian-test.patch +++ b/community/glm/fix-endian-test.patch @@ -3,28 +3,28 @@ index 5830999..86167c5 100644 --- a/test/gtc/gtc_packing.cpp +++ b/test/gtc/gtc_packing.cpp @@ -5,6 +5,8 @@ - #include <cstdio>
- #include <vector>
-
-+#include <endian.h>
-+
- void print_bits(float const& s)
- {
- union
+ #include <cstdio> + #include <vector> + ++#include <endian.h> ++ + void print_bits(float const& s) + { + union @@ -154,6 +156,7 @@ int test_U3x10_1x2() - Error += glm::all(glm::equal(v0, v1)) ? 0 : 1;
- }
-
-+#if BYTE_ORDER == LITTLE_ENDIAN
- glm::u8vec4 const v0(0xff, 0x77, 0x0, 0x33);
- glm::uint32 const p0 = *reinterpret_cast<glm::uint32 const*>(&v0[0]);
- glm::uint32 const r0 = 0x330077ff;
+ Error += glm::all(glm::equal(v0, v1)) ? 0 : 1; + } + ++#if BYTE_ORDER == LITTLE_ENDIAN + glm::u8vec4 const v0(0xff, 0x77, 0x0, 0x33); + glm::uint32 const p0 = *reinterpret_cast<glm::uint32 const*>(&v0[0]); + glm::uint32 const r0 = 0x330077ff; @@ -165,7 +168,7 @@ int test_U3x10_1x2() - glm::uint32 const r1 = 0xc001dcff;
-
- Error += p1 == r1 ? 0 : 1;
--
-+#endif
- return Error;
- }
-
+ glm::uint32 const r1 = 0xc001dcff; + + Error += p1 == r1 ? 0 : 1; +- ++#endif + return Error; + } + |