Skip to content

Commit c54d603

Browse files
committed
Fix build with latest visual studio (2019)
1 parent a87236a commit c54d603

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

bn_s_mp_rand_platform.c

-7
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,9 @@ static mp_err s_read_arc4random(void *p, size_t n)
2727
#define ARM
2828
#endif
2929

30-
#ifdef _MSC_VER
31-
# pragma warning(push)
32-
# pragma warning (disable : 4668)
33-
#endif
3430
#define WIN32_LEAN_AND_MEAN
3531
#include <windows.h>
3632
#include <wincrypt.h>
37-
#ifdef _MSC_VER
38-
# pragma warning(pop)
39-
#endif
4033

4134
static mp_err s_read_wincsp(void *p, size_t n)
4235
{

makefile.msvc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ PREFIX = c:\devel
1414
CFLAGS = /Ox
1515

1616
#Compilation flags
17-
LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /D_CRT_HAS_CXX17=0 /Wall /wd4146 /wd4127 /wd4710 /wd4711 /wd4820 /WX $(CFLAGS)
17+
LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /D_CRT_HAS_CXX17=0 /Wall /wd4146 /wd4127 /wd4668 /wd4710 /wd4711 /wd4820 /wd5045 /WX $(CFLAGS)
1818
LTM_LDFLAGS = advapi32.lib
1919

2020
#Libraries to be created (this makefile builds only static libraries)

0 commit comments

Comments
 (0)