--- sourceforge.net/trunk/rdesktop/rdesktop.h 2002/07/29 08:10:11 71 +++ sourceforge.net/trunk/rdesktop/rdesktop.h 2003/10/31 04:29:57 536 @@ -1,7 +1,7 @@ /* rdesktop: A Remote Desktop Protocol client. Master include file - Copyright (C) Matthew Chapman 1999-2000 + Copyright (C) Matthew Chapman 1999-2002 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,9 +21,8 @@ #include #include #include -#include -#define VERSION "1.1.0" +#define VERSION "1.3.0" #ifdef WITH_DEBUG #define DEBUG(args) printf args; @@ -31,17 +30,35 @@ #define DEBUG(args) #endif -#if defined(WITH_DEBUG_KBD) -#define DEBUG_KBD(...) fprintf(stderr, __VA_ARGS__); +#ifdef WITH_DEBUG_KBD +#define DEBUG_KBD(args) printf args; #else -#define DEBUG_KBD(...) +#define DEBUG_KBD(args) #endif -#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } +#ifdef WITH_DEBUG_RDP5 +#define DEBUG_RDP5(args) printf args; +#else +#define DEBUG_RDP5(args) +#endif + +#ifdef WITH_DEBUG_CLIPBOARD +#define DEBUG_CLIPBOARD(args) printf args; +#else +#define DEBUG_CLIPBOARD(args) +#endif +#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } +#ifndef MIN +#define MIN(x,y) (((x) < (y)) ? (x) : (y)) +#endif +#ifndef MAX +#define MAX(x,y) (((x) > (y)) ? (x) : (y)) +#endif + +#include "parse.h" #include "constants.h" #include "types.h" -#include "parse.h" #ifndef MAKE_PROTO #include "proto.h"