summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/sha1.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/sha1.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/sha1.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/pwmanager/pwmanager/sha1.h b/pwmanager/pwmanager/sha1.h
index 29442a7..c649bae 100644
--- a/pwmanager/pwmanager/sha1.h
+++ b/pwmanager/pwmanager/sha1.h
@@ -20,10 +20,15 @@
#ifndef SHA1_H
#define SHA1_H
-
+#ifdef _WIN32_
+#define uint32_t unsigned int
+#define uint8_t unsigned char
+#define byte unsigned char
+#else
#include <stdint.h>
+typedef uint8_t byte;
+#endif
#include <string>
using std::string;
-typedef uint8_t byte;
#define SHA1_HASH_LEN_BIT 160