/[rdesktop]/jpeg/rdesktop/trunk/rdesktop.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jpeg/rdesktop/trunk/rdesktop.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 878 by jsorg71, Sun Apr 3 05:41:04 2005 UTC revision 1465 by matthewc, Sat Apr 5 06:15:45 2008 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Master include file     Master include file
4     Copyright (C) Matthew Chapman 1999-2005     Copyright (C) Matthew Chapman 1999-2007
5      
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.     (at your option) any later version.
10      
11     This program is distributed in the hope that it will be useful,     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.     GNU General Public License for more details.
15      
16     You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software     along with this program; if not, write to the Free Software
18     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# Line 21  Line 21 
21  #include <stdlib.h>  #include <stdlib.h>
22  #include <stdio.h>  #include <stdio.h>
23  #include <string.h>  #include <string.h>
24    #ifdef _WIN32
25    #define WINVER 0x0400
26    #include <windows.h>
27    #include <winsock.h>
28    #include <time.h>
29    #define DIR int
30    #else
31  #include <dirent.h>  #include <dirent.h>
32  #include <sys/time.h>  #include <sys/time.h>
33  #ifdef HAVE_SYS_SELECT_H  #ifdef HAVE_SYS_SELECT_H
# Line 29  Line 36 
36  #include <sys/types.h>  #include <sys/types.h>
37  #include <unistd.h>  #include <unistd.h>
38  #endif  #endif
39    #endif
40    #include <limits.h>             /* PATH_MAX */
41    
42  #define VERSION "1.4.0"  #define VERSION "1.6.0"
43    
44  #ifdef WITH_DEBUG  #ifdef WITH_DEBUG
45  #define DEBUG(args)     printf args;  #define DEBUG(args)     printf args;
# Line 56  Line 65 
65  #define DEBUG_CLIPBOARD(args)  #define DEBUG_CLIPBOARD(args)
66  #endif  #endif
67    
68    #ifdef WITH_DEBUG_SOUND
69    #define DEBUG_SOUND(args) printf args;
70    #else
71    #define DEBUG_SOUND(args)
72    #endif
73    
74    #ifdef WITH_DEBUG_CHANNEL
75    #define DEBUG_CHANNEL(args) printf args;
76    #else
77    #define DEBUG_CHANNEL(args)
78    #endif
79    
80    #ifdef WITH_DEBUG_SCARD
81    #define DEBUG_SCARD(args) printf args;
82    #else
83    #define DEBUG_SCARD(args)
84    #endif
85    
86  #define STRNCPY(dst,src,n)      { strncpy(dst,src,n-1); dst[n-1] = 0; }  #define STRNCPY(dst,src,n)      { strncpy(dst,src,n-1); dst[n-1] = 0; }
87    
88  #ifndef MIN  #ifndef MIN
# Line 66  Line 93 
93  #define MAX(x,y)                (((x) > (y)) ? (x) : (y))  #define MAX(x,y)                (((x) > (y)) ? (x) : (y))
94  #endif  #endif
95    
96    /* timeval macros */
97    #ifndef timerisset
98    #define timerisset(tvp)\
99             ((tvp)->tv_sec || (tvp)->tv_usec)
100    #endif
101    #ifndef timercmp
102    #define timercmp(tvp, uvp, cmp)\
103            ((tvp)->tv_sec cmp (uvp)->tv_sec ||\
104            (tvp)->tv_sec == (uvp)->tv_sec &&\
105            (tvp)->tv_usec cmp (uvp)->tv_usec)
106    #endif
107    #ifndef timerclear
108    #define timerclear(tvp)\
109            ((tvp)->tv_sec = (tvp)->tv_usec = 0)
110    #endif
111    
112  /* If configure does not define the endianess, try  /* If configure does not define the endianess, try
113     to find it out */     to find it out */
114  #if !defined(L_ENDIAN) && !defined(B_ENDIAN)  #if !defined(L_ENDIAN) && !defined(B_ENDIAN)

Legend:
Removed from v.878  
changed lines
  Added in v.1465

  ViewVC Help
Powered by ViewVC 1.1.26