[vlc-commits] rdp: Fix build with FreeRDP 2.0.0.

Vinson Lee git at videolan.org
Fri Jul 22 14:11:26 CEST 2016


vlc/vlc-2.2 | branch: master | Vinson Lee <vlee at freedesktop.org> | Fri Jul 22 13:37:13 2016 +0200| [58b64da19c082e128cc92c3d5852c981be9312f3] | committer: Jean-Baptiste Kempf

rdp: Fix build with FreeRDP 2.0.0.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=58b64da19c082e128cc92c3d5852c981be9312f3
---

 modules/access/rdp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/rdp.c b/modules/access/rdp.c
index 0a11f42..744788b 100644
--- a/modules/access/rdp.c
+++ b/modules/access/rdp.c
@@ -46,7 +46,7 @@
 #endif
 
 #if !defined(FREERDP_VERSION_MAJOR) || \
-    (defined(FREERDP_VERSION_MAJOR) && !(FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 ))
+    (defined(FREERDP_VERSION_MAJOR) && !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 1)))
 # define SoftwareGdi sw_gdi
 # define Fullscreen fullscreen
 # define ServerHostname hostname
@@ -233,7 +233,7 @@ static bool postConnectHandler( freerdp *p_instance )
     vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *) p_instance->context;
 
     msg_Dbg( p_vlccontext->p_demux, "connected to desktop %dx%d (%d bpp)",
-#if (FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 )
+#if defined(FREERDP_VERSION_MAJOR) && (FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 1))
              p_instance->settings->DesktopWidth,
              p_instance->settings->DesktopHeight,
              p_instance->settings->ColorDepth



More information about the vlc-commits mailing list