]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.h
tests: activate dpkg multi-arch even if test is single arch
[apt.git] / apt-pkg / contrib / sha1.h
index b4b139a222bdf2194b69a15356e257842aa3e072..1c5cb5aa17e6bd230e56ecf3413e272677fdace7 100644 (file)
 #ifndef APTPKG_SHA1_H
 #define APTPKG_SHA1_H
 
 #ifndef APTPKG_SHA1_H
 #define APTPKG_SHA1_H
 
+#include "hashsum_template.h"
+
+#ifndef APT_10_CLEANER_HEADERS
 #include <string>
 #include <cstring>
 #include <algorithm>
 #include <string>
 #include <cstring>
 #include <algorithm>
-
-#include "hashsum_template.h"
+#endif
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::min;
+#endif
 
 typedef  HashSumValue<160> SHA1SumValue;
 
 
 typedef  HashSumValue<160> SHA1SumValue;
 
@@ -31,7 +37,7 @@ class SHA1Summation : public SummationImplementation
    bool Done;
    
    public:
    bool Done;
    
    public:
-   bool Add(const unsigned char *inbuf, unsigned long long inlen);
+   bool Add(const unsigned char *inbuf, unsigned long long inlen) APT_OVERRIDE;
    using SummationImplementation::Add;
 
    SHA1SumValue Result();
    using SummationImplementation::Add;
 
    SHA1SumValue Result();