From: Yann Collet Date: Sat, 13 Aug 2016 23:19:12 +0000 (+0200) Subject: fixed Visual warning X-Git-Tag: v0.8.1^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94ca85d01b7f582de40375307fef45bffb499649;p=thirdparty%2Fzstd.git fixed Visual warning --- diff --git a/programs/fileio.c b/programs/fileio.c index e0bba2087..66ccbc784 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -40,8 +40,11 @@ /* ************************************* * Compiler Options ***************************************/ -#define _POSIX_SOURCE 1 /* enable %llu on Windows */ -#define _CRT_SECURE_NO_WARNINGS /* removes Visual warning on strerror() */ +#ifdef _MSC_VER /* Visual */ +# define _POSIX_SOURCE 1 /* enable %llu on Windows */ +# define _CRT_SECURE_NO_WARNINGS /* removes Visual warning on strerror() */ +# pragma warning(disable : 4204) /* non-constant aggregate initializer */ +#endif /*-*************************************