doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
setup.h
Go to the documentation of this file.
1 #ifndef __CLIENT_SETUP_H
2 #define __CLIENT_SETUP_H
3 /***************************************************************************
4  * _ _ ____ _
5  * Project ___| | | | _ \| |
6  * / __| | | | |_) | |
7  * | (__| |_| | _ <| |___
8  * \___|\___/|_| \_\_____|
9  *
10  * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
11  *
12  * This software is licensed as described in the file COPYING, which
13  * you should have received as part of this distribution. The terms
14  * are also available at http://curl.haxx.se/docs/copyright.html.
15  *
16  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17  * copies of the Software, and permit persons to whom the Software is
18  * furnished to do so, under the terms of the COPYING file.
19  *
20  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21  * KIND, either express or implied.
22  *
23  * $Id: setup.h,v 1.29 2004/03/17 12:46:48 bagder Exp $
24  ***************************************************************************/
25 
26 #define CURL_NO_OLDIES
27 
28 #if !defined(WIN32) && defined(__WIN32__)
29 /* Borland fix */
30 #define WIN32
31 #endif
32 
33 #ifdef HAVE_CONFIG_H
34 #ifdef VMS
35 #include "config-vms.h"
36 #else
37 #include "config.h" /* the configure script results */
38 #endif
39 #else
40 #ifdef WIN32
41 /* include the hand-modified win32 adjusted config.h! */
42 #include "config-win32.h"
43 #endif
44 #ifdef NETWARE
45 /* hand-modified NetWare config.h! */
46 #include "config-netware.h"
47 #endif
48 #ifdef macintosh
49 /* this is not the same as Mac OS X */
50 #include "config-mac.h"
51 #endif
52 #ifdef __riscos__
53 #include "config-riscos.h"
54 #endif
55 #ifdef __amigaos__
56 #include "config-amigaos.h"
57 #endif
58 #endif
59 
60 #ifdef CURLDEBUG
61 /* This is an ugly hack for CURLDEBUG conditions only. We need to include
62  the file here, since it might set the _FILE_OFFSET_BITS define, which must
63  be set BEFORE all normal system headers. */
64 #include "../lib/setup.h"
65 #endif
66 
67 #include <stdio.h>
68 
69 #ifdef __TANDEM
70 #include <floss.h>
71 #endif
72 
73 #ifndef TRUE
74 #define TRUE 1
75 #endif
76 #ifndef FALSE
77 #define FALSE 0
78 #endif
79 
80 #ifndef OS
81 #define OS "unknown"
82 #endif
83 
84 #if !defined(fileno) && !defined(WIN32) /* sunos 4 have this as a macro! */
85 int fileno( FILE *stream);
86 #endif
87 
88 #ifdef WIN32
89 #define DIR_CHAR "\\"
90 #define DOT_CHAR "_"
91 #else
92 #ifdef __EMX__
93 /* 20000318 mgs
94  * OS/2 supports leading dots in filenames if the volume is formatted
95  * with JFS or HPFS. */
96 #define DIR_CHAR "\\"
97 #define DOT_CHAR "."
98 #else
99 
100 #ifdef DJGPP
101 #include <tcp.h>
102 #ifdef word
103 #undef word
104 #endif
105 #define HAVE_LIMITS_H /* we have limits.h */
106 #define DIR_CHAR "/"
107 #define DOT_CHAR "_"
108 #else
109 
110 #define DIR_CHAR "/"
111 #define DOT_CHAR "."
112 
113 #endif /* !DJGPP */
114 #endif /* !__EMX__ */
115 #endif /* !WIN32 */
116 
117 #ifdef __riscos__
118 #define USE_ENVIRONMENT
119 #endif
120 
121 #ifdef __BEOS__
122 #define typedef_bool
123 #endif
124 
125 #ifndef SIZEOF_CURL_OFF_T
126 #define SIZEOF_CURL_OFF_T sizeof(curl_off_t)
127 #endif
128 
129 #endif /* __SETUP_H */
int fileno(FILE *stream)