Skip to content

Commit

Permalink
window.h must be included before other windows headers
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Feb 12, 2024
1 parent b7fa0ef commit 766465b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/windows/device_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
#include <aws/common/byte_buf.h>
#include <aws/common/thread.h>

#include <bcrypt.h>
#include <windows.h>

#include <bcrypt.h>

static BCRYPT_ALG_HANDLE s_alg_handle = NULL;
static aws_thread_once s_rand_init = AWS_THREAD_ONCE_STATIC_INIT;

Expand Down
3 changes: 2 additions & 1 deletion source/windows/rw_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
#include <aws/common/rw_lock.h>
#include <aws/common/thread.h>

#include <synchapi.h>
#include <windows.h>

#include <synchapi.h>

/* Convert a string from a macro to a wide string */
#define WIDEN2(s) L## #s
#define WIDEN(s) WIDEN2(s)
Expand Down

0 comments on commit 766465b

Please sign in to comment.