ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/stdinc.h
(Generate patch)

Comparing:
ircd-hybrid-7.2/include/stdinc.h (file contents), Revision 912 by michael, Wed Nov 7 22:47:44 2007 UTC vs.
ircd-hybrid-8/include/stdinc.h (file contents), Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC

# Line 30 | Line 30
30  
31   #include "defaults.h"
32  
33 < #ifdef HAVE_STDLIB_H
33 > #include <stddef.h>
34   #include <stdlib.h>
35 < #endif
36 < #ifdef STRING_WITH_STRINGS
37 < # include <string.h>
38 < # include <strings.h>
39 < #else
40 < # ifdef HAVE_STRING_H
41 < #  include <string.h>
42 < # else
43 < #  ifdef HAVE_STRINGS_H
44 < #   include <strings.h>
45 < #  endif
46 < # endif
47 < #endif  
35 > #include <string.h>
36  
37   #ifdef HAVE_STRTOK_R
38   # define strtoken(x, y, z) strtok_r(y, z, x)
# Line 60 | Line 48
48   #endif
49   #endif
50  
63 – #ifdef HAVE_STDDEF_H
64 – # include <stddef.h>
65 – #else /* This is basically what stddef.h provides on most systems */
66 – # ifndef NULL
67 – #  define NULL ((void*)0)
68 – # endif
69 – # ifndef offsetof
70 – #  define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
71 – # endif
72 – #endif
73 –
51   #ifdef HAVE_CRYPT_H
52   #include <crypt.h>
53   #endif
# Line 85 | Line 62
62   #include <time.h>
63   #include <fcntl.h>
64  
88 – #ifdef HAVE_LIBGEN_H
89 – #include <libgen.h>
90 – #endif
91 –
65   #include <stdarg.h>
66   #include <signal.h>
67   #include <ctype.h>
68  
96 – #ifdef _WIN32
97 – #define PATH_MAX (MAX_PATH - 1)
98 – #define WIN32_LEAN_AND_MEAN
99 – #include <windows.h>
100 – #include <winsock.h>
101 – #else
69   #include <dirent.h>
70   #include <netdb.h>
71   #include <sys/socket.h>
# Line 106 | Line 73
73   #include <arpa/inet.h>
74   #include <sys/time.h>
75   #include <sys/file.h>
109 – #endif
76  
77   #include <limits.h>
78  
# Line 132 | Line 98
98   #else
99   extern int errno;
100   #endif
135 –
136 – #include "inet_misc.h"
137 –
138 – #ifdef _WIN32
139 – #undef strcasecmp
140 – #define strcasecmp stricmp
141 – #endif
142 –
101   #endif

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)