]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
removes Visual warning on strerror()
authorYann Collet <yann.collet.73@gmail.com>
Sat, 2 Jul 2016 22:17:39 +0000 (00:17 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Sat, 2 Jul 2016 22:20:03 +0000 (00:20 +0200)
programs/datagen.c
programs/fileio.c

index 389b5dbc7c1245d59cce2d970a18efb3df6421c6..0b3dce2e24c1880ad29d182e78fdef2c18b1d633 100644 (file)
     - source repository : https://github.com/Cyan4973/zstd
 */
 
+/* *************************************
+*  Compiler Options
+***************************************/
+#define _CRT_SECURE_NO_WARNINGS  /* removes Visual warning on strerror() */
+
+
 /*-************************************
 *  Includes
 **************************************/
index 20fc82dba2460b71c62ee13b8c9ceea16df4f248..5b41ec0f1be4a4b18ddc9b858d93502f3ed00f44 100644 (file)
@@ -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() */
 
 
 /*-*************************************