Browse Source

fix for mingw

pull/196/merge
Max Lv 10 years ago
parent
commit
9c34a7d84c
2 changed files with 6 additions and 1 deletions
  1. 2
      configure.ac
  2. 5
      libsodium/src/libsodium/sodium/utils.c

2
configure.ac

@ -47,7 +47,7 @@ m4_include([libev/libev.m4])
dnl Add library for mingw
case $host in
*-mingw*)
LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32"
LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -lcrypt32"
;;
*)
;;

5
libsodium/src/libsodium/sodium/utils.c

@ -19,6 +19,11 @@
#ifdef _WIN32
# include <windows.h>
# include <wincrypt.h>
#ifdef __MINGW32__
#ifndef SecureZeroMemory
#define SecureZeroMemory(p,s) RtlFillMemory((p),(s),0)
#endif
#endif
#else
# include <unistd.h>
#endif

Loading…
Cancel
Save