/[rdesktop]/sourceforge.net/trunk/rdesktop/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 /sourceforge.net/trunk/rdesktop/rdesktop.h

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

revision 826 by stargo, Wed Mar 2 17:38:26 2005 UTC revision 1199 by astrand, Mon Mar 27 08:17:34 2006 UTC
# Line 29  Line 29 
29  #include <sys/types.h>  #include <sys/types.h>
30  #include <unistd.h>  #include <unistd.h>
31  #endif  #endif
32    #include <limits.h>             /* PATH_MAX */
33    
34  #define VERSION "1.3.1"  #define VERSION "1.4.1"
35    
36  #ifdef WITH_DEBUG  #ifdef WITH_DEBUG
37  #define DEBUG(args)     printf args;  #define DEBUG(args)     printf args;
# Line 56  Line 57 
57  #define DEBUG_CLIPBOARD(args)  #define DEBUG_CLIPBOARD(args)
58  #endif  #endif
59    
60    #ifdef WITH_DEBUG_CHANNEL
61    #define DEBUG_CHANNEL(args) printf args;
62    #else
63    #define DEBUG_CHANNEL(args)
64    #endif
65    
66  #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; }
67    
68  #ifndef MIN  #ifndef MIN
# Line 66  Line 73 
73  #define MAX(x,y)                (((x) > (y)) ? (x) : (y))  #define MAX(x,y)                (((x) > (y)) ? (x) : (y))
74  #endif  #endif
75    
76    /* timeval macros */
77    #ifndef timerisset
78    #define timerisset(tvp)\
79             ((tvp)->tv_sec || (tvp)->tv_usec)
80    #endif
81    #ifndef timercmp
82    #define timercmp(tvp, uvp, cmp)\
83            ((tvp)->tv_sec cmp (uvp)->tv_sec ||\
84            (tvp)->tv_sec == (uvp)->tv_sec &&\
85            (tvp)->tv_usec cmp (uvp)->tv_usec)
86    #endif
87    #ifndef timerclear
88    #define timerclear(tvp)\
89            ((tvp)->tv_sec = (tvp)->tv_usec = 0)
90    #endif
91    
92  /* If configure does not define the endianess, try  /* If configure does not define the endianess, try
93     to find it out */     to find it out */
94  #if !defined(L_ENDIAN) && !defined(B_ENDIAN)  #if !defined(L_ENDIAN) && !defined(B_ENDIAN)
# Line 78  Line 101 
101  #endif  #endif
102  #endif /* B_ENDIAN, L_ENDIAN from configure */  #endif /* B_ENDIAN, L_ENDIAN from configure */
103    
104  /* Temporary NEED_ALIGN for alpha, should be properly detected  /* No need for alignment on x86 and amd64 */
105     by configure in the future */  #if !defined(NEED_ALIGN)
106  #if defined(__alpha__)  #if !(defined(__x86__) || defined(__x86_64__) || \
107          defined(__AMD64__) || defined(_M_IX86) || \
108          defined(__i386__))
109  #define NEED_ALIGN  #define NEED_ALIGN
110  #endif  #endif
111    #endif
112    
113  #include "parse.h"  #include "parse.h"
114  #include "constants.h"  #include "constants.h"

Legend:
Removed from v.826  
changed lines
  Added in v.1199

  ViewVC Help
Powered by ViewVC 1.1.26