~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to src/setup.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-16 15:16:54 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20070516151654-x9nkigtr2j0i8d0v
Tags: upstream-7.16.2
ImportĀ upstreamĀ versionĀ 7.16.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
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.45 2006-08-04 01:13:24 yangtse Exp $
 
23
 * $Id: setup.h,v 1.50 2007-02-28 14:45:49 yangtse Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#define CURL_NO_OLDIES
56
56
#include "config-riscos.h"
57
57
#endif
58
58
 
59
 
#ifdef __amigaos__
 
59
#ifdef __AMIGA__
60
60
#include "config-amigaos.h"
61
61
#endif
62
62
 
105
105
#  endif
106
106
#endif
107
107
 
 
108
/*
 
109
 * Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else
 
110
 * define USE_WINSOCK to 1 if we have and use WINSOCK  API, else
 
111
 * undefine USE_WINSOCK.
 
112
 */
 
113
 
 
114
#undef USE_WINSOCK
 
115
 
 
116
#ifdef HAVE_WINSOCK2_H
 
117
#  define USE_WINSOCK 2
 
118
#else
 
119
#  ifdef HAVE_WINSOCK_H
 
120
#    define USE_WINSOCK 1
 
121
#  endif
 
122
#endif
 
123
 
 
124
 
108
125
#include <stdio.h>
109
126
 
110
127
#ifdef __TANDEM
111
128
#include <floss.h>
112
129
#endif
113
130
 
114
 
#ifndef TRUE
115
 
#define TRUE 1
116
 
#endif
117
 
#ifndef FALSE
118
 
#define FALSE 0
119
 
#endif
120
 
 
121
 
#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(__ECOS) && !defined(typedef_bool)
122
 
typedef unsigned char bool;
123
 
#define typedef_bool
124
 
#endif
125
131
 
126
132
#ifndef OS
127
133
#define OS "unknown"
184
190
#define strdup(ptr) curlx_strdup(ptr)
185
191
#endif
186
192
 
 
193
/*
 
194
 * Include macros and defines that should only be processed once.
 
195
 */
 
196
 
 
197
#ifndef __SETUP_ONCE_H
 
198
#include "setup_once.h"
 
199
#endif
 
200
 
187
201
#endif /* __SRC_CURL_SETUP_H */