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 /*-*************************************