/[svn]/ircd-hybrid-7.2/include/stdinc.h
ViewVC logotype

Contents of /ircd-hybrid-7.2/include/stdinc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 923 - (show annotations)
Mon Nov 12 19:15:27 2007 UTC (13 years, 11 months ago) by michael
File MIME type: text/x-csrc
File size: 2579 byte(s)
- fixed compile with compressed links

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * stdinc.h: Pull in all of the necessary system headers
4 *
5 * Copyright (C) 2002 Aaron Sethman <androsyn@ratbox.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 *
24 */
25
26 #ifndef STDINC_H /* prevent multiple #includes */
27 #define STDINC_H
28
29 #include "config.h"
30
31 #include "defaults.h"
32
33 #include <stdlib.h>
34 #include <string.h>
35
36 #ifdef HAVE_STRTOK_R
37 # define strtoken(x, y, z) strtok_r(y, z, x)
38 #endif
39
40 #include <sys/types.h>
41
42 #ifdef HAVE_INTTYPES_H
43 #include <inttypes.h>
44 #else
45 #ifdef HAVE_STDINT_H
46 #include <stdint.h>
47 #endif
48 #endif
49
50 #ifdef HAVE_STDDEF_H
51 # include <stddef.h>
52 #else /* This is basically what stddef.h provides on most systems */
53 # ifndef NULL
54 # define NULL ((void*)0)
55 # endif
56 # ifndef offsetof
57 # define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
58 # endif
59 #endif
60
61 #ifdef HAVE_CRYPT_H
62 #include <crypt.h>
63 #endif
64
65 #ifdef HAVE_LIBCRYPTO
66 #include <openssl/ssl.h>
67 #include <openssl/err.h>
68 #endif
69
70 #include <stdio.h>
71 #include <assert.h>
72 #include <time.h>
73 #include <fcntl.h>
74
75 #ifdef HAVE_LIBGEN_H
76 #include <libgen.h>
77 #endif
78
79 #include <stdarg.h>
80 #include <signal.h>
81 #include <ctype.h>
82
83 #ifdef _WIN32
84 #define PATH_MAX (MAX_PATH - 1)
85 #define WIN32_LEAN_AND_MEAN
86 #include <windows.h>
87 #include <winsock.h>
88 #else
89 #include <dirent.h>
90 #include <netdb.h>
91 #include <sys/socket.h>
92 #include <netinet/in.h>
93 #include <arpa/inet.h>
94 #include <sys/time.h>
95 #include <sys/file.h>
96 #endif
97
98 #include <limits.h>
99
100 #ifdef HAVE_UNISTD_H
101 #include <unistd.h>
102 #endif
103
104 #ifdef HAVE_SYS_RESOURCE_H
105 #include <sys/resource.h>
106 #endif
107
108 #include <sys/stat.h>
109 #ifdef HAVE_SYS_WAIT_H
110 #include <sys/wait.h>
111 #endif
112
113 #ifdef HAVE_SYS_PARAM_H
114 #include <sys/param.h>
115 #endif
116
117 #ifdef HAVE_ERRNO_H
118 #include <errno.h>
119 #else
120 extern int errno;
121 #endif
122
123 #include "inet_misc.h"
124
125 #ifdef _WIN32
126 #undef strcasecmp
127 #define strcasecmp stricmp
128 #endif
129
130 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28