Fix nested ifdefs for windows

This commit is contained in:
Gent Semaj 2024-10-06 20:58:20 -07:00
parent 145113062b
commit d9b6aedd5b
Signed by untrusted user: ycc
GPG Key ID: 2D76C57BF6BEADC4

View File

@ -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"