~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to src/setup.h

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef __CLIENT_SETUP_H
2
2
#define __CLIENT_SETUP_H
3
 
/*****************************************************************************
 
3
/***************************************************************************
4
4
 *                                  _   _ ____  _     
5
5
 *  Project                     ___| | | |  _ \| |    
6
6
 *                             / __| | | | |_) | |    
7
7
 *                            | (__| |_| |  _ <| |___ 
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 2001, Daniel Stenberg, <daniel@haxx.se>, et al.
11
 
 *
12
 
 * In order to be useful for every potential user, curl and libcurl are
13
 
 * dual-licensed under the MPL and the MIT/X-derivate licenses.
14
 
 *
 
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
 * 
15
16
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
16
17
 * copies of the Software, and permit persons to whom the Software is
17
 
 * furnished to do so, under the terms of the MPL or the MIT/X-derivate
18
 
 * licenses. You may pick one of these licenses.
 
18
 * furnished to do so, under the terms of the COPYING file.
19
19
 *
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: setup.h,v 1.11 2002/02/20 23:24:04 bagder Exp $
24
 
 *****************************************************************************/
25
 
 
26
 
#include <stdio.h>
27
 
 
28
 
#if !defined(WIN32) && defined(_WIN32)
29
 
/* This _might_ be a good Borland fix. Please report whether this works or
30
 
   not! */
 
23
 * $Id: setup.h,v 1.30 2004/03/21 22:46:07 bagder Exp $
 
24
 ***************************************************************************/
 
25
 
 
26
#define CURL_NO_OLDIES
 
27
 
 
28
#if !defined(WIN32) && defined(__WIN32__)
 
29
/* Borland fix */
31
30
#define WIN32
32
31
#endif
33
32
 
34
33
#ifdef HAVE_CONFIG_H
35
 
#ifdef VMS
36
 
#include "config-vms.h"
37
 
#else
38
34
#include "config.h" /* the configure script results */
39
 
#endif
40
35
#else
41
36
#ifdef WIN32
42
37
/* include the hand-modified win32 adjusted config.h! */
43
38
#include "config-win32.h"
44
39
#endif
 
40
#ifdef NETWARE
 
41
/* hand-modified NetWare config.h! */
 
42
#include "config-netware.h"
 
43
#endif
45
44
#ifdef macintosh
46
45
/* this is not the same as Mac OS X */
47
46
#include "config-mac.h"
48
47
#endif
 
48
#ifdef __riscos__
 
49
#include "config-riscos.h"
 
50
#endif
 
51
#ifdef __amigaos__
 
52
#include "config-amigaos.h"
 
53
#endif
 
54
#endif
 
55
 
 
56
#ifdef CURLDEBUG
 
57
/* This is an ugly hack for CURLDEBUG conditions only. We need to include
 
58
   the file here, since it might set the _FILE_OFFSET_BITS define, which must
 
59
   be set BEFORE all normal system headers. */
 
60
#include "../lib/setup.h"
 
61
#endif
 
62
 
 
63
#include <stdio.h>
 
64
 
 
65
#ifdef __TANDEM
 
66
#include <floss.h>
 
67
#endif
 
68
 
 
69
#ifndef TRUE
 
70
#define TRUE 1
 
71
#endif
 
72
#ifndef FALSE
 
73
#define FALSE 0
49
74
#endif
50
75
 
51
76
#ifndef OS
57
82
#endif
58
83
 
59
84
#ifdef WIN32
60
 
#define PATH_CHAR     ";"
61
85
#define DIR_CHAR      "\\"
62
86
#define DOT_CHAR      "_"
63
87
#else
65
89
/* 20000318 mgs
66
90
 * OS/2 supports leading dots in filenames if the volume is formatted
67
91
 * with JFS or HPFS. */
68
 
#define PATH_CHAR     ";"
69
92
#define DIR_CHAR      "\\"
70
93
#define DOT_CHAR      "."
71
94
#else
72
95
 
73
 
#define PATH_CHAR     ":"
 
96
#ifdef DJGPP
 
97
#include <tcp.h>
 
98
#ifdef word
 
99
#undef word
 
100
#endif
 
101
#define HAVE_LIMITS_H /* we have limits.h */
 
102
#define DIR_CHAR      "/"
 
103
#define DOT_CHAR      "_"
 
104
#else
 
105
 
74
106
#define DIR_CHAR      "/"
75
107
#define DOT_CHAR      "."
76
108
 
77
 
#endif
 
109
#endif /* !DJGPP */
 
110
#endif /* !__EMX__ */
 
111
#endif /* !WIN32 */
 
112
 
 
113
#ifdef __riscos__
 
114
#define USE_ENVIRONMENT
 
115
#endif
 
116
 
 
117
#ifdef __BEOS__
 
118
#define typedef_bool
 
119
#endif
 
120
 
 
121
#ifndef SIZEOF_CURL_OFF_T
 
122
#define SIZEOF_CURL_OFF_T sizeof(curl_off_t)
78
123
#endif
79
124
 
80
125
#endif /* __SETUP_H */