From: Yann Collet Date: Sat, 2 Jul 2016 22:17:39 +0000 (+0200) Subject: removes Visual warning on strerror() X-Git-Tag: v0.7.2^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2b5309c6fa1e2997f7aabfb3985e2315d05a3dc;p=thirdparty%2Fzstd.git removes Visual warning on strerror() --- diff --git a/programs/datagen.c b/programs/datagen.c index 389b5dbc7..0b3dce2e2 100644 --- a/programs/datagen.c +++ b/programs/datagen.c @@ -23,6 +23,12 @@ - source repository : https://github.com/Cyan4973/zstd */ +/* ************************************* +* Compiler Options +***************************************/ +#define _CRT_SECURE_NO_WARNINGS /* removes Visual warning on strerror() */ + + /*-************************************ * Includes **************************************/ diff --git a/programs/fileio.c b/programs/fileio.c index 20fc82dba..5b41ec0f1 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -41,7 +41,8 @@ /* ************************************* * Compiler Options ***************************************/ -#define _POSIX_SOURCE 1 /* enable %llu on Windows */ +#define _POSIX_SOURCE 1 /* enable %llu on Windows */ +#define _CRT_SECURE_NO_WARNINGS /* removes Visual warning on strerror() */ /*-*************************************