From 4e4dbd6a2d9e882a2a23baf758a209621b5334fc Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 20 Apr 2016 22:02:01 -0700 Subject: [PATCH] GUACAMOLE-25: Fix configure test for FreeRDP variations. --- configure.ac | 6 +++++- src/protocols/rdp/guac_ai/ai_service.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 04cb6bb1..7dec629a 100644 --- a/configure.ac +++ b/configure.ac @@ -779,7 +779,11 @@ then wStream* stream); IWTSVirtualChannelCallback cb = { .OnDataReceived = __data_received - };]])], + }; + int main() { + return + cb.OnDataReceived(NULL, NULL); + }]])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_DEFINE([LEGACY_IWTSVIRTUALCHANNELCALLBACK],, diff --git a/src/protocols/rdp/guac_ai/ai_service.c b/src/protocols/rdp/guac_ai/ai_service.c index 945f0398..2fbf2aca 100644 --- a/src/protocols/rdp/guac_ai/ai_service.c +++ b/src/protocols/rdp/guac_ai/ai_service.c @@ -95,7 +95,7 @@ static void guac_rdp_ai_handle_data(guac_client* client, } -#if LEGACY_IWTSVIRTUALCHANNELCALLBACK +#ifdef LEGACY_IWTSVIRTUALCHANNELCALLBACK /** * Callback which is invoked when data is received along a connection to the * AUDIO_INPUT plugin. This callback is specific to FreeRDP 1.1 and older.