--- sourceforge.net/trunk/rdesktop/rdesktop.h 2000/09/28 15:54:11 17 +++ sourceforge.net/trunk/rdesktop/rdesktop.h 2003/01/22 08:10:11 294 @@ -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 @@ -18,22 +18,26 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include #include #include -#define VERSION "0.9.0-alpha2" +#define VERSION "1.2.0" -#define STATUS(args...) fprintf(stderr, args); -#define ERROR(args...) fprintf(stderr, "ERROR: "args); -#define WARN(args...) fprintf(stderr, "WARNING: "args); -#define NOTIMP(args...) fprintf(stderr, "NOTIMP: "args); +#ifdef WITH_DEBUG +#define DEBUG(args) printf args; +#else +#define DEBUG(args) +#endif -#ifdef RDP_DEBUG -#define DEBUG(args...) fprintf(stderr, args); +#ifdef WITH_DEBUG_KBD +#define DEBUG_KBD(args) printf args; #else -#define DEBUG(args...) +#define DEBUG_KBD(args) #endif +#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } + #include "constants.h" #include "types.h" #include "parse.h"