From 75068e7d753cf6cbe45a4bf294000dca9bd41d8b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 4 Sep 2006 21:06:23 +0000 Subject: * Use a proper namespace. * Optimise header file usage a bit. * Compile the parser as C++. --- src/libutil/hash.hh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libutil/hash.hh') diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh index 97466cf9ef..95629bc9e5 100644 --- a/src/libutil/hash.hh +++ b/src/libutil/hash.hh @@ -1,11 +1,10 @@ #ifndef __HASH_H #define __HASH_H -#include +#include "types.hh" -#include "util.hh" -using namespace std; +namespace nix { typedef enum { htUnknown, htMD5, htSHA1, htSHA256 } HashType; @@ -76,5 +75,8 @@ Hash compressHash(const Hash & hash, unsigned int newSize); /* Parse a string representing a hash type. */ HashType parseHashType(const string & s); + +} + #endif /* !__HASH_H */ -- cgit 1.4.1