From 22f1fbe3d2671fa9b8b5647b634ad748974152d1 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 31 May 2017 11:31:36 +0200 Subject: [PATCH] Fixed missing external declaration (#3982) --- libfreerdp/core/peer.c | 5 +---- libfreerdp/core/rdp.c | 2 +- libfreerdp/core/rdp.h | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libfreerdp/core/peer.c b/libfreerdp/core/peer.c index 8737eba55..fb02f71e9 100644 --- a/libfreerdp/core/peer.c +++ b/libfreerdp/core/peer.c @@ -30,14 +30,11 @@ #include +#include "rdp.h" #include "peer.h" #define TAG FREERDP_TAG("core.peer") -#ifdef WITH_DEBUG_RDP -extern const char* DATA_PDU_TYPE_STRINGS[80]; -#endif - static HANDLE freerdp_peer_virtual_channel_open(freerdp_peer* client, const char* name, UINT32 flags) { diff --git a/libfreerdp/core/rdp.c b/libfreerdp/core/rdp.c index 480611563..f89d9c25e 100644 --- a/libfreerdp/core/rdp.c +++ b/libfreerdp/core/rdp.c @@ -34,7 +34,7 @@ #define TAG FREERDP_TAG("core.rdp") -static const char* DATA_PDU_TYPE_STRINGS[80] = +const char* DATA_PDU_TYPE_STRINGS[80] = { "?", "?", /* 0x00 - 0x01 */ "Update", /* 0x02 */ diff --git a/libfreerdp/core/rdp.h b/libfreerdp/core/rdp.h index f24c77e20..484e38217 100644 --- a/libfreerdp/core/rdp.h +++ b/libfreerdp/core/rdp.h @@ -240,6 +240,7 @@ FREERDP_LOCAL void rdp_free(rdpRdp* rdp); #define RDP_TAG FREERDP_TAG("core.rdp") #ifdef WITH_DEBUG_RDP #define DEBUG_RDP(...) WLog_DBG(RDP_TAG, __VA_ARGS__) +extern const char* DATA_PDU_TYPE_STRINGS[80]; #else #define DEBUG_RDP(...) do { } while (0) #endif