]>
git.ipfire.org Git - thirdparty/squid.git/blob - include/squid.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 #define SQUID_CONFIG_H
12 #include "autoconf.h" /* For GNU autoconf variables */
14 #if !defined(HAVE_SQUID)
15 /* sub-packages define their own version details */
20 /* default values for listen ports. Usually specified in squid.conf really */
21 #define CACHE_HTTP_PORT 3128
22 #define CACHE_ICP_PORT 3130
24 /* To keep API definitions clear */
26 #define SQUIDCEXTERN extern "C"
28 #define SQUIDCEXTERN extern
32 #define _SQUID_INLINE_ inline
34 #define _SQUID_INLINE_
37 /****************************************************************************
38 *--------------------------------------------------------------------------*
39 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
40 *--------------------------------------------------------------------------*
41 ****************************************************************************/
43 #include "compat/compat.h"
45 #ifdef USE_POSIX_REGEX
47 #define USE_RE_SYNTAX REG_EXTENDED /* default Syntax */
51 #if !defined(CACHEMGR_HOSTNAME)
52 #define CACHEMGR_HOSTNAME ""
54 #define CACHEMGR_HOSTNAME_DEFINED 1
57 #if SQUID_DETECT_UDP_SO_SNDBUF > 16384
58 #define SQUID_UDP_SO_SNDBUF 16384
60 #define SQUID_UDP_SO_SNDBUF SQUID_DETECT_UDP_SO_SNDBUF
63 #if SQUID_DETECT_UDP_SO_RCVBUF > 16384
64 #define SQUID_UDP_SO_RCVBUF 16384
66 #define SQUID_UDP_SO_RCVBUF SQUID_DETECT_UDP_SO_RCVBUF
70 #define squid_random random
71 #define squid_srandom srandom
73 #define squid_random lrand48
74 #define squid_srandom srand48
76 #define squid_random rand
77 #define squid_srandom srand
81 * Determine if this is a leak check build or standard
83 #if PURIFY || WITH_VALGRIND
84 #define LEAK_CHECK_MODE 1
87 /* temp hack: needs to be pre-defined for now. */
88 #define SQUID_MAXPATHLEN 256
90 // TODO: determine if this is required. OR if compat/os/mswindows.h works
91 #if _SQUID_WINDOWS_ && defined(__cplusplus)
92 /** \cond AUTODOCS-IGNORE */
93 using namespace Squid
;
97 // temporary for the definition of LOCAL_ARRAY
98 #include "leakcheck.h"
100 #endif /* SQUID_CONFIG_H */