~ubuntu-branches/debian/stretch/apt-cacher-ng/stretch

« back to all changes in this revision

Viewing changes to include/config.h

  • Committer: Package Import Robot
  • Author(s): Eduard Bloch
  • Date: 2015-09-21 21:35:41 UTC
  • mfrom: (1.6.28)
  • Revision ID: package-import@ubuntu.com-20150921213541-rh3tsf8k2g2n0fdr
Tags: 0.8.6-1
* New upstream version
  + replaces the expiration call mechanism and script with native
    implementation (closes: 794328)
* Changed error log rotation schedule to daily execution (to expire some
  cruft from ancient bugs sooner or later)
* removed urlencode-fixer.pl (should be obsolete now), expire-caller.pl
  (symlink to acngtool which emulates it)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
#include "acsyscap.h"
6
6
 
 
7
// safe fallbacks, should be defined by build system
7
8
#ifndef ACVERSION
8
9
#define ACVERSION "0.custom"
9
10
#endif
 
11
#ifndef CFGDIR
 
12
#define CFGDIR "/usr/local/etc/apt-cacher-ng"
 
13
#endif
 
14
#ifndef LIBDIR
 
15
#define LIBDIR "/usr/local/lib/apt-cacher-ng"
 
16
#endif
10
17
 
11
18
#define __STDC_FORMAT_MACROS
12
19
#include <inttypes.h>
13
20
#include <climits>
14
 
 
15
 
#ifdef HAVE_MEMORY_SPTR
16
21
#include <memory>
17
 
#define SMARTPTR_SPACE std
18
 
#elif defined HAVE_TR1_MEMORY
19
 
#include <tr1/memory>
20
 
#define SMARTPTR_SPACE std::tr1
21
 
#elif defined HAVE_BOOST_SMARTPTR
22
 
#include <boost/smart_ptr.hpp>
23
 
#define SMARTPTR_SPACE boost
24
 
#else
25
 
#error Unable to find smart pointer implementation, install Boost or recent compiler with STL containing TR1 components. Set BOOSTDIR in Makefile if needed.
26
 
#endif
27
22
 
28
 
// make off_t be a 64 bit type
29
23
// added in Makefile... #define _FILE_OFFSET_BITS 64
30
24
 
31
 
#define SHARED_PTR SMARTPTR_SPACE::shared_ptr
32
 
#define INTRUSIVE_PTR SMARTPTR_SPACE::intrusive_ptr
33
 
#define WEAK_PTR SMARTPTR_SPACE::weak_ptr
 
25
#define SHARED_PTR std::shared_ptr
 
26
#define INTRUSIVE_PTR std::intrusive_ptr
 
27
#define WEAK_PTR std::weak_ptr
34
28
#define SCOPED_PTR std::auto_ptr
35
29
 
36
30
#ifdef NO_EXCEPTIONS