diff --git a/codec/console/enc/src/read_config.cpp b/codec/console/enc/src/read_config.cpp index 0bace5ee..61b23fe7 100644 --- a/codec/console/enc/src/read_config.cpp +++ b/codec/console/enc/src/read_config.cpp @@ -38,15 +38,11 @@ * *****************************************************************************/ +#define _CRT_SECURE_NO_WARNINGS #include #include #include "read_config.h" -#if defined(_MSC_VER) -#pragma warning(push) -#pragma warning(disable:4996) -#endif - CReadConfig::CReadConfig() : m_pCfgFile (NULL) , m_strCfgFileName ("") @@ -141,7 +137,3 @@ const bool CReadConfig::ExistFile() { const string& CReadConfig::GetFileName() { return m_strCfgFileName; } - -#if defined(_MSC_VER) -#pragma warning(pop) -#endif