Mercurial > hg > orthanc-object-storage
annotate Aws/aws-c-common-0.9.23.patch @ 210:408c90c9027f default tip
todo: google soft delete
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Wed, 09 Oct 2024 11:48:14 +0200 |
parents | f7654d481226 |
children |
rev | line source |
---|---|
161
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 diff -urEb aws-c-common-0.9.23.orig/include/aws/common/byte_order.inl aws-c-common-0.9.23/include/aws/common/byte_order.inl |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 --- aws-c-common-0.9.23.orig/include/aws/common/byte_order.inl 2024-06-20 20:25:49.000000000 +0200 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 +++ aws-c-common-0.9.23/include/aws/common/byte_order.inl 2024-06-23 14:55:38.563418806 +0200 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 @@ -39,7 +39,7 @@ |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 uint64_t v; |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 __asm__("bswap %q0" : "=r"(v) : "0"(x)); |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 return v; |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 -#elif defined(_MSC_VER) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 +#elif defined(_MSC_VER) || defined(__MINGW32__) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 return _byteswap_uint64(x); |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 #else |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 uint32_t low = x & UINT32_MAX; |