From d9b6aedd5bab3d78e84a5328107654ad780d23e2 Mon Sep 17 00:00:00 2001 From: Gent Semaj Date: Sun, 6 Oct 2024 20:58:20 -0700 Subject: [PATCH] Fix nested ifdefs for windows --- vendor/bcrypt/bcrypt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vendor/bcrypt/bcrypt.c b/vendor/bcrypt/bcrypt.c index 4f95bda..0223587 100644 --- a/vendor/bcrypt/bcrypt.c +++ b/vendor/bcrypt/bcrypt.c @@ -22,13 +22,14 @@ #endif #include -#if defined(_WIN32) || defined(_WIN64) -// On windows we need to generate random bytes differently. #if defined(_WIN32) && !defined(_WIN64) typedef __int32 ssize_t; #elif defined(_WIN32) && defined(_WIN64) typedef __int64 ssize_t; #endif + +#if defined(_WIN32) || defined(_WIN64) +// On windows we need to generate random bytes differently. #define BCRYPT_HASHSIZE 60 #include "bcrypt.h"