00001 /* 00002 rdesktop: A Remote Desktop Protocol client. 00003 Master include file 00004 Copyright (C) Matthew Chapman 1999-2002 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #include <stdlib.h> 00022 #include <stdio.h> 00023 #include <string.h> 00024 00025 //#define __LITTLE_ENDIAN 1234 00026 //#define __BIG_ENDIAN 4321 00027 //#define __BYTE_ORDER __BIG_ENDIAN 00028 00029 //#if __BYTE_ORDER == __LITTLE_ENDIAN 00030 #define L_ENDIAN 00031 #define NEED_ALIGN 00032 //#error le 00033 //#elif __BYTE_ORDER == __BIG_ENDIAN 00034 //#define B_ENDIAN 00035 //#error be 00036 //#else 00037 //#error Unknown endianness. Edit rdesktop.h. 00038 //#endif 00039 00040 00041 //#define B_ENDIAN 00042 //#define B_ENDIAN_PREFERRED 00043 00044 #define VERSION "1.2.0" 00045 00046 #ifdef WITH_DEBUG 00047 #define DEBUG(args) printf args; 00048 #else 00049 #define DEBUG(args) 00050 #endif 00051 00052 #ifdef WITH_DEBUG_KBD 00053 #define DEBUG_KBD(args) printf args; 00054 #else 00055 #define DEBUG_KBD(args) 00056 #endif 00057 00058 #define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } 00059 00060 #include "constants.h" 00061 #include "types.h" 00062 #include "parse.h" 00063 00064 #ifndef MAKE_PROTO 00065 #include "proto.h" 00066 #endif
1.4.2