The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
@@ -18,6 +18,10 @@
#include <string>
+#ifndef APT_8_CLEANER_HEADERS
+using std::min;
+#endif
+
class pkgDirStream;
class ExtractTar
@@ -75,6 +75,11 @@
#include <sys/time.h>
#include <unistd.h>
+using std::vector;
+using std::string;
class pkgAcquireStatus;
/** \brief The core download scheduler. {{{
@@ -36,6 +36,10 @@
#include <iostream>
+using std::ostream;
class pkgSimulate : public pkgPackageManager /*{{{*/
@@ -4,6 +4,10 @@
#include<string>
#include<vector>
+using namespace std;
class Configuration;
class OpProgress;
@@ -12,6 +12,10 @@
// mount cdrom, DeviceName (e.g. /dev/sr0) is optional
bool MountCdrom(std::string Path, std::string DeviceName="");
bool UnmountCdrom(std::string Path);
@@ -34,6 +34,10 @@
#include <vector>
class Configuration
{
public:
@@ -29,6 +29,10 @@
#include <zlib.h>
/* Define this for python-apt */
#define APT_HAS_GZIP 1
@@ -22,6 +22,12 @@
#include <cstring>
// helper class that contains hash function name
// and hash
class HashString
@@ -15,6 +15,11 @@
#include <algorithm>
#include <stdint.h>
template<int N>
class HashSumValue
@@ -31,6 +31,11 @@
#include "hashsum_template.h"
typedef HashSumValue<128> MD5SumValue;
class MD5Summation : public SummationImplementation
@@ -28,6 +28,10 @@
class FileFd;
/* This should be a 32 bit type, larger tyes use too much ram and smaller
@@ -25,6 +25,10 @@
class OpProgress
@@ -20,6 +20,11 @@
typedef HashSumValue<160> SHA1SumValue;
class SHA1Summation : public SummationImplementation
@@ -27,6 +27,12 @@
#include "macros.h"
bool UTF8ToCodeset(const char *codeset, const std::string &orig, std::string *dest);
char *_strstrip(char *String);
char *_strtabexpand(char *String,size_t Len);
#include <map>
#include <stdio.h>
+using std::map;
class pkgDPkgPMPrivate;
class pkgDPkgPM : public pkgPackageManager
@@ -14,6 +14,11 @@
class pkgTagSection;
class indexRecords;
#include <apt-pkg/pkgrecords.h>
#include <apt-pkg/macros.h>
class pkgAcquire;
class pkgCacheGenerator;
@@ -6,6 +6,10 @@
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/indexfile.h>
#include <set>
class pkgDepCache;
class pkgSourceList;
@@ -74,11 +74,14 @@
#ifndef PKGLIB_PKGCACHE_H
#define PKGLIB_PKGCACHE_H
-
#include <time.h>
#include <apt-pkg/mmap.h>
class pkgVersioningSystem;
class pkgCache /*{{{*/
@@ -38,6 +38,10 @@
#include <apt-pkg/versionmatch.h>
class pkgPolicy : public pkgDepCache::Policy
protected:
@@ -17,6 +17,11 @@
class pkgIndexFile;
class pkgSrcRecords
// A class representing a particular software provider.
class __deprecated Vendor
class Vendor;
@@ -23,6 +23,10 @@
#include <apt-pkg/strutl.h>
class pkgVersioningSystem
@@ -39,6 +39,10 @@
class pkgVersionMatch
// Version Matching