~ubuntu-branches/ubuntu/wily/curl/wily

« back to all changes in this revision

Viewing changes to lib/setup.h

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2011-11-25 17:30:45 UTC
  • mfrom: (3.4.23 sid)
  • Revision ID: package-import@ubuntu.com-20111125173045-2l3ni88jv16kath0
Tags: 7.22.0-3ubuntu1
* Merge from Debian unstable, remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Add new libcurl3-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
#  endif
252
252
#endif
253
253
 
 
254
#ifdef USE_LWIPSOCK
 
255
#  include <lwip/init.h>
 
256
#  include <lwip/sockets.h>
 
257
#  include <lwip/netdb.h>
 
258
#endif
 
259
 
254
260
#ifdef HAVE_EXTRA_STRICMP_H
255
261
#  include <extra/stricmp.h>
256
262
#endif
279
285
#ifdef HAVE_ASSERT_H
280
286
#include <assert.h>
281
287
#endif
282
 
#include <errno.h>
283
288
 
284
289
#ifdef __TANDEM /* for nsr-tandem-nsk systems */
285
290
#include <floss.h>
563
568
#define USE_HTTP_NEGOTIATE
564
569
#endif
565
570
 
 
571
/* Single point where USE_NTLM definition might be done */
566
572
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_NTLM)
567
573
#if defined(USE_SSLEAY) || defined(USE_WINDOWS_SSPI) || \
568
574
   defined(USE_GNUTLS) || defined(USE_NSS)
580
586
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
581
587
#endif
582
588
 
 
589
/* Provide a mechanism to silence picky compilers, such as gcc 4.6+.
 
590
   Parameters should of course normally not be unused, but for example when we
 
591
   have multiple implementations of the same interface it may happen. */
 
592
#ifndef __GNUC__
 
593
#define UNUSED_PARAM /*NOTHING*/
 
594
#else
 
595
#define UNUSED_PARAM __attribute__((unused))
 
596
#endif
 
597
 
583
598
/*
584
599
 * Include macros and defines that should only be processed once.
585
600
 */
588
603
#include "setup_once.h"
589
604
#endif
590
605
 
 
606
/*
 
607
 * Definition of our NOP statement Object-like macro
 
608
 */
 
609
 
 
610
#ifndef Curl_nop_stmt
 
611
#  define Curl_nop_stmt do { } WHILE_FALSE
 
612
#endif
 
613
 
 
614
/*
 
615
 * Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
 
616
 */
 
617
 
 
618
#if defined(__LWIP_OPT_H__)
 
619
#  if defined(SOCKET) || \
 
620
     defined(USE_WINSOCK) || \
 
621
     defined(HAVE_ERRNO_H) || \
 
622
     defined(HAVE_WINSOCK_H) || \
 
623
     defined(HAVE_WINSOCK2_H) || \
 
624
     defined(HAVE_WS2TCPIP_H)
 
625
#    error "Winsock and lwIP TCP/IP stack definitions shall not coexist!"
 
626
#  endif
 
627
#endif
 
628
 
591
629
#endif /* HEADER_CURL_LIB_SETUP_H */