diff options
author | Gianfranco Costamagna <costamagna.gianfranco@gmail.com> | 2018-11-05 16:16:53 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-11-15 13:18:51 -0800 |
commit | a4e589147636ce78a0806a96d96102dae5e61319 (patch) | |
tree | 4a4a94320a1c23d3841b5125cee98c5439692a4b /meta-oe/recipes-support/cpprest/cpprest/950-fix.patch | |
parent | 0ded4a44ac2bbc186e4f3df8c60eade85e8e94eb (diff) | |
download | meta-openembedded-a4e589147636ce78a0806a96d96102dae5e61319.tar.gz |
cpprest: upgrade to version 2.10.7 and add support for brotli library
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/cpprest/cpprest/950-fix.patch')
-rw-r--r-- | meta-oe/recipes-support/cpprest/cpprest/950-fix.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/cpprest/cpprest/950-fix.patch b/meta-oe/recipes-support/cpprest/cpprest/950-fix.patch new file mode 100644 index 000000000..3ae46a115 --- /dev/null +++ b/meta-oe/recipes-support/cpprest/cpprest/950-fix.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Origin: upstream | ||
2 | Bug: https://github.com/Microsoft/cpprestsdk/issues/950 | ||
3 | Last-Update: 2018-11-04 | ||
4 | |||
5 | Index: cpprest/Release/src/utilities/asyncrt_utils.cpp | ||
6 | =================================================================== | ||
7 | --- cpprest.orig/Release/src/utilities/asyncrt_utils.cpp | ||
8 | +++ cpprest/Release/src/utilities/asyncrt_utils.cpp | ||
9 | @@ -356,7 +356,7 @@ | ||
10 | inline size_t count_utf8_to_utf16(const std::string& s) | ||
11 | { | ||
12 | const size_t sSize = s.size(); | ||
13 | - auto sData = reinterpret_cast<const UtilCharInternal_t* const>(s.data()); | ||
14 | + auto const sData = reinterpret_cast<const UtilCharInternal_t*>(s.data()); | ||
15 | size_t result{ sSize }; | ||
16 | |||
17 | for (size_t index = 0; index < sSize;) | ||
18 | @@ -441,7 +441,7 @@ | ||
19 | { | ||
20 | // Save repeated heap allocations, use the length of resulting sequence. | ||
21 | const size_t srcSize = s.size(); | ||
22 | - auto srcData = reinterpret_cast<const UtilCharInternal_t* const>(s.data()); | ||
23 | + auto const srcData = reinterpret_cast<const UtilCharInternal_t*>(s.data()); | ||
24 | utf16string dest(count_utf8_to_utf16(s), L'\0'); | ||
25 | utf16string::value_type* const destData = &dest[0]; | ||
26 | size_t destIndex = 0; | ||