From 581143f74c0d47ea164ee50faf668fb62ee65957 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 18 Nov 2009 13:26:52 -0800 Subject: [PATCH] add -D_CRT_SECURE_NO_DEPRECATE if win32 --- bindings/SigarBuild.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/SigarBuild.pm b/bindings/SigarBuild.pm index d83ef3e6..3a8a520b 100644 --- a/bindings/SigarBuild.pm +++ b/bindings/SigarBuild.pm @@ -70,7 +70,7 @@ sub flags { if ($os =~ /(win32)/) { $os = $1; $is_win32 = 1; - @cppflags = ('-DWIN32'); + @cppflags = ('-DWIN32', '-D_CRT_SECURE_NO_DEPRECATE'); @libs = qw(kernel32 user32 advapi32 ws2_32 netapi32 shell32 pdh version comsupp wbemuuid); } elsif ($os =~ /(linux)/) {