]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.h
Store tags in the cache (they are very useful :/).
[apt.git] / apt-pkg / contrib / sha1.h
index a8d55eb13d5a77e5f2e5fd0313ae48be29bab47d..3387c1cfd203e1858a60bda5a3419777f4b2a768 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;
 #ifndef APT_8_CLEANER_HEADERS
 using std::string;
 using std::min;
@@ -36,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 APT_NONNULL(2);
    using SummationImplementation::Add;
 
    SHA1SumValue Result();
    using SummationImplementation::Add;
 
    SHA1SumValue Result();