diff options
author | Damien Miller <djm@mindrot.org> | 2013-07-27 20:13:49 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-07-27 20:13:49 +1000 |
commit | 9b74f402568e135995a5730edd074136be93f7bd (patch) | |
tree | 307af99a99dea48d6ecbab5f59a221d996de9313 /bcrypt/bcrypt.c | |
parent | 9fed64732dd4201bc0f6a39f8c457978cf0bbd50 (diff) | |
download | py-bcrypt-9b74f402568e135995a5730edd074136be93f7bd.tar.gz |
fix compilation errors on VS2008; mostly from a patch from Florian Ruechel
issue#1
Diffstat (limited to 'bcrypt/bcrypt.c')
-rw-r--r-- | bcrypt/bcrypt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bcrypt/bcrypt.c b/bcrypt/bcrypt.c index 98ecbef..8f5812d 100644 --- a/bcrypt/bcrypt.c +++ b/bcrypt/bcrypt.c @@ -52,8 +52,9 @@ #include "pybc_blf.h" -#if defined(_MSC_VER) +#if defined(_WIN32) #define snprintf _snprintf +#define bzero(s,n) memset(s, '\0', n) #endif /* This implementation is adaptable to current computing power. |