Commit 7d9ac8f4 authored by Aurelien Jarno's avatar Aurelien Jarno

Add 1004_64-bit-architectures.patch to correctly support non-amd64

64-bit architectures.
parent d01af3f8
freerdp (1.1.0~git20140921.1.440916e+dfsg1-1.1) UNRELEASED; urgency=medium
[ Aurelien Jarno ]
* Fix testsuite issues:
- Add 1004_64-bit-architectures.patch to correctly support non-amd64
64-bit architectures.
-- Aurelien Jarno <aurel32@debian.org> Sun, 28 Sep 2014 18:43:52 +0200
freerdp (1.1.0~git20140921.1.440916e+dfsg1-1) unstable; urgency=medium
[ Mike Gabriel ]
......
The current definitions wrongly assume the only 64-bit architecture is
x86-64. Use the __ILP64__, __LP64__ and __LLP64__ to correctly define
the size of a long and of pointer.
Ideally long, intptr_t and uintptr_t should be used directly but there
might be a (portability ?) reason why it is not the case.
--- a/winpr/include/winpr/wtypes.h
+++ b/winpr/include/winpr/wtypes.h
@@ -37,7 +37,7 @@
#define __int32 int
#define __int64 long long
-#if __x86_64__
+#if __ILP64__ || __LP64__
#define __int3264 __int64
#else
#define __int3264 __int32
@@ -136,7 +136,7 @@ typedef void *PVOID64, *LPVOID64;
typedef const void *LPCVOID;
typedef unsigned short WORD, *PWORD, *LPWORD;
-#if __x86_64__
+#if __ILP64__ || __LP64__ || __LLP64__
typedef __int64 INT_PTR;
typedef unsigned __int64 UINT_PTR;
#else
1001_hide-internal-symbols.patch
1002_update-pkg-config-file.patch
1003_multi-arch-include-path.patch
1004_64-bit-architectures.patch
2001_detect-ffmpeg-on-Debian.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment