]> git.ipfire.org Git - thirdparty/git.git/blobdiff - compat/winansi.c
wrapper: add a helper to generate numbers from a CSPRNG
[thirdparty/git.git] / compat / winansi.c
index c27b20a79d91cf7877d795c96e64cbadafdad7fd..0e5a9cc82e5f310742ae13c7c022bb446915fcc3 100644 (file)
@@ -3,6 +3,12 @@
  */
 
 #undef NOGDI
+
+/*
+ * Including the appropriate header file for RtlGenRandom causes MSVC to see a
+ * redefinition of types in an incompatible way when including headers below.
+ */
+#undef HAVE_RTLGENRANDOM
 #include "../git-compat-util.h"
 #include <wingdi.h>
 #include <winreg.h>