Move _CRT_SECURE_NO_WARNINGS to property sheet.

This commit is contained in:
Ari Koivula 2013-09-24 19:43:40 +03:00
parent ca34dd4b3f
commit e5cced6b4a
3 changed files with 1 additions and 9 deletions

View file

@ -12,7 +12,7 @@
<WarningLevel>Level3</WarningLevel>
<AssemblerOutput>AssemblyAndSourceCode</AssemblerOutput>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PreprocessorDefinitions>WIN32;WIN64;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;WIN64;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\src;$(SolutionDir)..\..\seatest\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>

View file

@ -18,10 +18,6 @@
* - -n <n>: encode only n frames
*/
// Suppress some visual studio warnings
#ifdef WIN32
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -9,10 +9,6 @@
* Department of Pervasive Computing.
*/
#ifdef WIN32
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "encoder.h"
#include <math.h>