Crossfire Server, Branches 1.12  R18729
includes.h
Go to the documentation of this file.
1 /*
2  * static char *rcsid_includes_h =
3  * "$Id: includes.h 11578 2009-02-23 22:02:27Z lalo $";
4  */
5 
6 /*
7  CrossFire, A Multiplayer game for X-windows
8 
9  Copyright (C) 2002 Mark Wedel & Crossfire Development Team
10  Copyright (C) 1992 Frank Tore Johansen
11 
12  This program is free software; you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 
26  The authors can be reached via e-mail at crossfire-devel@real-time.com
27 */
28 
34 #ifndef INCLUDES_H
35 #define INCLUDES_H
36 
37 #if defined(osf1) && !defined(__osf__)
38 # define __osf__
39 #endif
40 
41 #if defined(sgi) && !defined(__sgi__)
42 # define __sgi__
43 #endif
44 
45 #ifdef sun
46 # ifndef __sun__
47 # define __sun__
48 # endif
49 #endif
50 
51 #if defined(ultrix) && !defined(__ultrix__)
52 # define __ultrix__
53 #endif
54 
55 /* Include this first, because it lets us know what we are missing */
56 #ifdef WIN32 /* ---win32 exclude this, config comes from VC ide */
57 #include "win32.h"
58 #else
59 #include <autoconf.h>
60 #endif
61 
62 #include <stdio.h>
63 #include <string.h>
64 #include <ctype.h>
65 #include <errno.h>
66 #include <signal.h>
67 #include <setjmp.h>
68 #include <stdlib.h>
69 
70 #ifdef __NetBSD__
71 #include <math.h>
72 #endif
73 
74 #ifdef HAVE_FCNTL_H
75 #include <fcntl.h>
76 #endif
77 
78 #ifdef HAVE_LIBDMALLOC
79 #include <dmalloc.h>
80 #endif
81 
82 #ifdef HAVE_UNISTD_H
83 #include <unistd.h>
84 #endif
85 
86 #ifdef HAVE_SYS_TIME_H
87 #include <sys/time.h>
88 #endif
89 
90 #if defined(HAVE_TIME_H) && defined(TIME_WITH_SYS_TIME)
91 #include <time.h>
92 #endif
93 
94 /* stddef is for offsetof */
95 #ifdef HAVE_STDDEF_H
96 #include <stddef.h>
97 #endif
98 
99 #include <sys/types.h>
100 
101 #include <sys/stat.h>
102 
103 #include "config.h"
104 #include "define.h"
105 #include "logger.h"
106 #include "newclient.h"
107 #include "languages.h"
108 
109 #ifndef TRUE
110 #define TRUE 1
111 #endif
112 
113 #ifndef FALSE
114 #define FALSE 0
115 #endif
116 
117 #if defined(vax) || defined(ibm032)
118 size_t strftime(char *, size_t, const char *, const struct tm *);
119 time_t mktime(struct tm *);
120 #endif
121 
122 #endif /* INCLUDES_H */