From c4de5a4e4b1e9b4c46f1f3262d0fc2430de64850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20LeBlanc?= Date: Fri, 15 Nov 2013 08:21:36 -0500 Subject: [PATCH] Fixed compilation on windows (code was not standard C) --- libfreerdp/core/input.c | 3 ++- libfreerdp/core/update.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libfreerdp/core/input.c b/libfreerdp/core/input.c index fc5b5f4ee..7b505310b 100644 --- a/libfreerdp/core/input.c +++ b/libfreerdp/core/input.c @@ -494,9 +494,10 @@ static void input_free_queued_message(void *obj) rdpInput* input_new(rdpRdp* rdp) { - const wObject cb = { .fnObjectFree = input_free_queued_message }; + wObject cb; rdpInput* input; + cb.fnObjectFree = input_free_queued_message ; input = (rdpInput*) malloc(sizeof(rdpInput)); if (input != NULL) diff --git a/libfreerdp/core/update.c b/libfreerdp/core/update.c index a4cebdf08..1296a7b02 100644 --- a/libfreerdp/core/update.c +++ b/libfreerdp/core/update.c @@ -1553,9 +1553,10 @@ static void update_free_queued_message(void *obj) rdpUpdate* update_new(rdpRdp* rdp) { - const wObject cb = { .fnObjectFree = update_free_queued_message }; + wObject cb; rdpUpdate* update; + cb.fnObjectFree = update_free_queued_message; update = (rdpUpdate*) malloc(sizeof(rdpUpdate)); if (update)