From: Aaron Dierking Date: Thu, 14 Jun 2018 18:38:33 +0000 (-0700) Subject: build: Disable CRT warnings on Windows X-Git-Tag: 0.10.0~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f99b8ea52737701820078e9efd59fa75f348878e;p=thirdparty%2Flibbsd.git build: Disable CRT warnings on Windows These warnings are not helpful for libbsd. [guillem@hadrons.org: - Rename WINDOWS conditional to OS_WINDOWS. - Add a nil terminator to the AM_CPPFLAGS. ] Signed-off-by: Guillem Jover --- diff --git a/src/Makefile.am b/src/Makefile.am index 76222a3..8384b92 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,6 +7,13 @@ AM_CPPFLAGS = \ -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED \ -D__REENTRANT +if OS_WINDOWS +AM_CPPFLAGS += \ + -D_CRT_SECURE_NO_WARNINGS \ + -D_CRT_NONSTDC_NO_WARNINGS \ + $(nil) +endif + libbsd_la_included_sources = \ hash/helper.c \ getentropy_aix.c \