disabled %llu warnings with MinGW on Windows

This commit is contained in:
inikep
2016-08-17 14:52:11 +02:00
parent 156ab8f4a1
commit 78f3e0630b
2 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -41,11 +41,12 @@
* Compiler Options
***************************************/
#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
#if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
# define _POSIX_SOURCE 1 /* disable %llu warnings with MinGW on Windows */
#endif
/*-*************************************
* Includes