Skip to content

Commit d959e75

Browse files
authored
Merge pull request libgit2#6373 from christoph-cullmann/fix_compile_WIN32_LEAN_AND_MEAN
fix compile on Windows with -DWIN32_LEAN_AND_MEAN
2 parents 5250fa9 + 6ad26cd commit d959e75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/rand.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ See <http://creativecommons.org/publicdomain/zero/1.0/>. */
1414
# include <sys/random.h>
1515
#endif
1616

17+
#if defined(GIT_WIN32)
18+
# include <wincrypt.h>
19+
#endif
20+
1721
static uint64_t state[4];
1822
static git_mutex state_lock;
1923

0 commit comments

Comments
 (0)