Merge pull request #3986 from akallabeth/debug_fix

Fixed missing external declaration (#3982)
This commit is contained in:
David Fort 2017-05-31 12:02:31 +02:00 committed by GitHub
commit bbe80451aa
3 changed files with 3 additions and 5 deletions

View File

@ -30,14 +30,11 @@
#include <freerdp/log.h> #include <freerdp/log.h>
#include "rdp.h"
#include "peer.h" #include "peer.h"
#define TAG FREERDP_TAG("core.peer") #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, static HANDLE freerdp_peer_virtual_channel_open(freerdp_peer* client, const char* name,
UINT32 flags) UINT32 flags)
{ {

View File

@ -34,7 +34,7 @@
#define TAG FREERDP_TAG("core.rdp") #define TAG FREERDP_TAG("core.rdp")
static const char* DATA_PDU_TYPE_STRINGS[80] = const char* DATA_PDU_TYPE_STRINGS[80] =
{ {
"?", "?", /* 0x00 - 0x01 */ "?", "?", /* 0x00 - 0x01 */
"Update", /* 0x02 */ "Update", /* 0x02 */

View File

@ -240,6 +240,7 @@ FREERDP_LOCAL void rdp_free(rdpRdp* rdp);
#define RDP_TAG FREERDP_TAG("core.rdp") #define RDP_TAG FREERDP_TAG("core.rdp")
#ifdef WITH_DEBUG_RDP #ifdef WITH_DEBUG_RDP
#define DEBUG_RDP(...) WLog_DBG(RDP_TAG, __VA_ARGS__) #define DEBUG_RDP(...) WLog_DBG(RDP_TAG, __VA_ARGS__)
extern const char* DATA_PDU_TYPE_STRINGS[80];
#else #else
#define DEBUG_RDP(...) do { } while (0) #define DEBUG_RDP(...) do { } while (0)
#endif #endif