Silence MSVC warnings about "unsafe" standard C functions in console apps

Within the libraries themselves, we use other wrapper functions to
make sure the functions are used safely, but this wrapper layer isn't
available outside of the library in the console apps. The usage of these
functions is safe here, so silence the warnings.

This gets rid of all warnings when building with MSVC in 32 bit mode,
making it much easier to spot new warnings.
This commit is contained in:
Martin Storsjö 2014-04-11 09:46:52 +03:00
parent 21ed4a1f06
commit efdb58dae5
3 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@
*/
#if defined (_WIN32)
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <tchar.h>
#else

View File

@ -38,6 +38,7 @@
*
*****************************************************************************/
#define _CRT_SECURE_NO_WARNINGS
#include <string.h>
#include <stdio.h>

View File

@ -30,6 +30,7 @@
*
*/
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <assert.h>