From b2b5309c6fa1e2997f7aabfb3985e2315d05a3dc Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 3 Jul 2016 00:17:39 +0200 Subject: [PATCH] removes Visual warning on strerror() --- programs/datagen.c | 6 ++++++ programs/fileio.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/programs/datagen.c b/programs/datagen.c index 389b5dbc..0b3dce2e 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 20fc82db..5b41ec0f 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() */ /*-*************************************