Skip to content

Commit

Permalink
Windows - fix typo, that makes clang-cl compilation fail.
Browse files Browse the repository at this point in the history
It is _WIN32 that is always defined on Windows, not anything else.
  • Loading branch information
vaintroub committed May 8, 2021
1 parent 180c543 commit 2d5a511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ma_crypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define MA_MAX_HASH_SIZE 64
/** \typedef MRL hash context */

#if defined(WIN32)
#if defined(_WIN32)
#include <windows.h>
#include <bcrypt.h>
typedef struct {
Expand Down Expand Up @@ -153,7 +153,7 @@ static inline void ma_hash(unsigned int algorithm,
unsigned char *digest)
{
MA_HASH_CTX *ctx= NULL;
#ifdef HAVE_SCHANNEL
#ifdef _WIN32
MA_HASH_CTX dctx;
ctx= &dctx;
#endif
Expand Down

0 comments on commit 2d5a511

Please sign in to comment.