Skip to content

Commit

Permalink
Merge pull request libgit2#6373 from christoph-cullmann/fix_compile_W…
Browse files Browse the repository at this point in the history
…IN32_LEAN_AND_MEAN

fix compile on Windows with -DWIN32_LEAN_AND_MEAN
  • Loading branch information
ethomson authored Sep 19, 2022
2 parents 5250fa9 + 6ad26cd commit d959e75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ See <http://creativecommons.org/publicdomain/zero/1.0/>. */
# include <sys/random.h>
#endif

#if defined(GIT_WIN32)
# include <wincrypt.h>
#endif

static uint64_t state[4];
static git_mutex state_lock;

Expand Down

0 comments on commit d959e75

Please sign in to comment.