Skip to content

Commit

Permalink
Fix nested ifdefs for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yungcomputerchair committed Oct 7, 2024
1 parent 1451130 commit d9b6aed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vendor/bcrypt/bcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
#endif
#include <errno.h>

#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"
Expand Down

0 comments on commit d9b6aed

Please sign in to comment.