Hi,
This patch fixed a type define issue on non-x86_64 platform, e.g.
mips64. and output an error message "Unsupported platform!" in else
case.
--
Best regards!
Heiher
http://hev.cc
From 084a33440a4266f7fad0a7bd06b9f55a11221677 Mon Sep 17 00:00:00 2001
From: Heiher <r...@hev.cc>
Date: Thu, 25 Jun 2015 13:53:10 +0800
Subject: [PATCH] winpr: fix crash on mips 64-bit platform.
---
winpr/include/winpr/wtypes.h | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/winpr/include/winpr/wtypes.h b/winpr/include/winpr/wtypes.h
index 2f184b2..4d5e3af 100644
--- a/winpr/include/winpr/wtypes.h
+++ b/winpr/include/winpr/wtypes.h
@@ -54,10 +54,12 @@
#define __int32 int
#define __int64 long long
-#if __x86_64__
+#if defined(__x86_64__) || (defined(__mips__) && defined(_ABI64))
#define __int3264 __int64
-#else
+#elif defined(__i386)
#define __int3264 __int32
+#else
+#error "Unsupported platform!"
#endif
#ifndef __OBJC__
@@ -168,12 +170,14 @@ typedef void *PVOID, *LPVOID;
typedef void *PVOID64, *LPVOID64;
typedef unsigned short WORD, *PWORD, *LPWORD;
-#if __x86_64__
+#if defined(__x86_64__) || (defined(__mips__) && defined(_ABI64))
typedef __int64 INT_PTR;
typedef unsigned __int64 UINT_PTR;
-#else
+#elif defined(__i386)
typedef int INT_PTR;
typedef unsigned int UINT_PTR;
+#else
+#error "Unsupported platform!"
#endif
typedef struct _GUID
--
2.1.0
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel