fixed Visual warning

This commit is contained in:
Yann Collet
2016-08-16 15:11:28 +02:00
parent 655393cc72
commit 94ca85d01b
+5 -2
View File
@@ -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
/*-*************************************