~ubuntu-branches/ubuntu/hardy/curl/hardy-updates

« back to all changes in this revision

Viewing changes to src/setup.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-10-30 10:56:48 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20061030105648-uo8q8w9xklb40b4k
Tags: 7.15.5-1ubuntu1
* Merge from debian unstable. Remaining Ubuntu changes:
  - debian/control: Drop libdb4.2 build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.41 2006-06-08 06:12:31 bagder Exp $
 
23
 * $Id: setup.h,v 1.45 2006-08-04 01:13:24 yangtse Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#define CURL_NO_OLDIES
83
83
 * winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs 
84
84
 * to any other further and independant block.  Under Cygwin things work
85
85
 * just as under linux (e.g. <sys/socket.h>) and the winsock headers should
86
 
 * never be included.
 
86
 * never be included when __CYGWIN__ is defined.  configure script takes
 
87
 * care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H,
 
88
 * neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined.
87
89
 */
88
90
 
89
 
#if defined(HAVE_WINDOWS_H) && !defined(__CYGWIN__)
 
91
#ifdef HAVE_WINDOWS_H
90
92
#  ifndef WIN32_LEAN_AND_MEAN
91
93
#    define WIN32_LEAN_AND_MEAN
92
94
#  endif
116
118
#define FALSE 0
117
119
#endif
118
120
 
119
 
#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(typedef_bool)
 
121
#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(__ECOS) && !defined(typedef_bool)
120
122
typedef unsigned char bool;
121
123
#define typedef_bool
122
124
#endif
177
179
#define UNPRINTABLE_CHAR '.'
178
180
#endif
179
181
 
 
182
#ifndef HAVE_STRDUP
 
183
#include "strdup.h"
 
184
#define strdup(ptr) curlx_strdup(ptr)
 
185
#endif
 
186
 
180
187
#endif /* __SRC_CURL_SETUP_H */