diff --git a/configure b/configure index 4faec5b..c4010ad 100755 --- a/configure +++ b/configure @@ -59,6 +59,9 @@ case $arg in --with-debug-kbd) cflags="$cflags -g -DWITH_DEBUG_KBD" ;; + --with-debug-rdp5) + cflags="$cflags -g -DWITH_DEBUG_RDP5" + ;; --without-debug*) ;; *) diff --git a/rdesktop.h b/rdesktop.h index 2c85996..f433af3 100644 --- a/rdesktop.h +++ b/rdesktop.h @@ -36,6 +36,12 @@ #define DEBUG_KBD(args) #endif +#ifdef WITH_DEBUG_RDP5 +#define DEBUG_RDP5(args) printf args; +#else +#define DEBUG_RDP5(args) +#endif + #define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } #include "constants.h"