- Disable warning 4996.
svn path=/trunk/; revision=38301
if ( !f )
throw FileNotFoundException ( filename );
- if ( fstat ( _fileno ( f ), &statbuf ) != 0 )
+ if ( fstat ( fileno ( f ), &statbuf ) != 0 )
{
fclose ( f );
throw AccessDeniedException ( filename );
Backend::Factory::Factory ( const std::string& name_, const std::string& description_ )
{
string name(name_);
- _strlwr ( &name[0] );
+ strlwr ( &name[0] );
if ( !ref++ )
factories = new map<string,Factory*>;
(*factories)[name] = this;
Configuration& configuration )
{
string sname ( name );
- _strlwr ( &sname[0] );
+ strlwr ( &sname[0] );
if ( !factories || !factories->size () )
throw InvalidOperationException ( __FILE__,
__LINE__,
string::size_type pos = file.find_last_of (sSep);
if ( pos != string::npos )
file.erase ( 0, pos+1 );
- if ( !_stricmp ( Right(file,3).c_str(), ".rc" ) )
+ if ( !stricmp ( Right(file,3).c_str(), ".rc" ) )
file = ReplaceExtension ( file, ".res" );
else
file = ReplaceExtension ( file, ".obj" );
string fullpath = files[i]->file.relative_path + sSep + files[i]->file.name;
string file = string(".") + &fullpath[cbproj_path.size()];
- if ( !_stricmp ( Right(file,3).c_str(), ".rc" ) )
+ if ( !stricmp ( Right(file,3).c_str(), ".rc" ) )
resource_files.push_back ( file );
else
source_files.push_back ( file );
if ( !f )
throw FileNotFoundException ( NormalizeFilename ( xmlbuildfile.topIncludeFilename ) );
- if ( fstat ( _fileno ( f ), &statbuf ) != 0 )
+ if ( fstat ( fileno ( f ), &statbuf ) != 0 )
{
fclose ( f );
throw AccessDeniedException ( NormalizeFilename ( xmlbuildfile.topIncludeFilename ) );
{
usePipe = (exitcode == 0);
fclose ( f );
- _unlink ( pipe_detectionObjectFilename.c_str () );
+ unlink ( pipe_detectionObjectFilename.c_str () );
}
else
usePipe = false;
{
use_pch = true;
fclose ( f );
- _unlink ( path.c_str () );
+ unlink ( path.c_str () );
}
else
use_pch = false;
GetTargetMacro ( const Module& module, bool with_dollar )
{
string s ( module.name );
- _strupr ( &s[0] );
+ strupr ( &s[0] );
s += "_TARGET";
if ( with_dollar )
return ssprintf ( "$(%s)", s.c_str() );
const char * crtAttr = module.CRT.c_str ();
const char * crtLib = NULL;
- if ( _stricmp ( crtAttr, "libc" ) == 0 )
+ if ( stricmp ( crtAttr, "libc" ) == 0 )
crtLib = "crt";
- else if ( _stricmp ( crtAttr, "msvcrt" ) == 0 )
+ else if ( stricmp ( crtAttr, "msvcrt" ) == 0 )
crtLib = "msvcrt";
- else if ( _stricmp ( crtAttr, "libcntpr" ) == 0 )
+ else if ( stricmp ( crtAttr, "libcntpr" ) == 0 )
crtLib = "libcntpr";
- else if ( _stricmp ( crtAttr, "ntdll" ) == 0 )
+ else if ( stricmp ( crtAttr, "ntdll" ) == 0 )
crtLib = "ntdll";
if ( crtLib )
*/
#ifdef _MSC_VER
#pragma warning ( disable : 4786 )
+#pragma warning ( disable : 4996 )
#endif//_MSC_VER
#include <iostream>
string::size_type pos = file.find_last_of (DEF_SSEP);
if ( pos != string::npos )
file.erase ( 0, pos+1 );
- if ( !_stricmp ( Right(file,3).c_str(), ".rc" ) )
+ if ( !stricmp ( Right(file,3).c_str(), ".rc" ) )
file = ReplaceExtension ( file, ".res" );
else
file = ReplaceExtension ( file, ".obj" );
string file = path + std::string("\\") + files[i]->file.name;
source_files.push_back ( file );
- if ( !_stricmp ( Right(file,2).c_str(), ".c" ) )
+ if ( !stricmp ( Right(file,2).c_str(), ".c" ) )
c_srcs.push_back ( file );
- if ( !_stricmp ( Right(file,2).c_str(), ".h" ) )
+ if ( !stricmp ( Right(file,2).c_str(), ".h" ) )
header_files.push_back ( file );
- if ( !_stricmp ( Right(file,3).c_str(), ".rc" ) )
+ if ( !stricmp ( Right(file,3).c_str(), ".rc" ) )
resource_files.push_back ( file );
}
const vector<Include*>& incs = data.includes;
module.output->relative_path );
string file = path + std::string("\\") + files[i]->file.name;
- if ( !_stricmp ( Right(file,3).c_str(), ".rc" ) )
+ if ( !stricmp ( Right(file,3).c_str(), ".rc" ) )
resource_files.push_back ( file );
- else if ( !_stricmp ( Right(file,2).c_str(), ".h" ) )
+ else if ( !stricmp ( Right(file,2).c_str(), ".h" ) )
header_files.push_back ( file );
else
source_files.push_back ( file );
{
const File& file = *files[i];
string fileExtension = GetExtension ( file.file );
- if ( !_stricmp ( fileExtension.c_str (), extension.c_str () ) )
+ if ( !stricmp ( fileExtension.c_str (), extension.c_str () ) )
return true;
}
return false;
#endif//_MSC_VER
#ifdef WIN32
-#define MKDIR(s) _mkdir(s)
+#define MKDIR(s) mkdir(s)
#else
#define MKDIR(s) mkdir(s, 0755)
#endif
if ( att != NULL )
{
const char* p = att->value.c_str();
- if ( !_stricmp ( p, "true" ) || !_stricmp ( p, "yes" ) )
+ if ( !stricmp ( p, "true" ) || !stricmp ( p, "yes" ) )
return true;
- else if ( !_stricmp ( p, "false" ) || !_stricmp ( p, "no" ) )
+ else if ( !stricmp ( p, "false" ) || !stricmp ( p, "no" ) )
return false;
else
{
{
CRT = att->value;
- if ( _stricmp ( CRT.c_str (), "auto" ) == 0 )
+ if ( stricmp ( CRT.c_str (), "auto" ) == 0 )
CRT = GetDefaultModuleCRT ();
}
else
CRT = GetDefaultModuleCRT ();
const char * crtAttr = CRT.c_str ();
- if ( crtAttr == NULL || _stricmp ( crtAttr, "none" ) == 0 )
+ if ( crtAttr == NULL || stricmp ( crtAttr, "none" ) == 0 )
dynamicCRT = false;
- else if ( _stricmp ( crtAttr, "libc" ) == 0 )
+ else if ( stricmp ( crtAttr, "libc" ) == 0 )
dynamicCRT = false;
- else if ( _stricmp ( crtAttr, "msvcrt" ) == 0 )
+ else if ( stricmp ( crtAttr, "msvcrt" ) == 0 )
dynamicCRT = true;
- else if ( _stricmp ( crtAttr, "libcntpr" ) == 0 )
+ else if ( stricmp ( crtAttr, "libcntpr" ) == 0 )
dynamicCRT = false;
- else if ( _stricmp ( crtAttr, "ntdll" ) == 0 )
+ else if ( stricmp ( crtAttr, "ntdll" ) == 0 )
dynamicCRT = true;
- else if ( _stricmp ( crtAttr, "static" ) == 0 )
+ else if ( stricmp ( crtAttr, "static" ) == 0 )
dynamicCRT = false;
- else if ( _stricmp ( crtAttr, "dll" ) == 0 )
+ else if ( stricmp ( crtAttr, "dll" ) == 0 )
dynamicCRT = true;
else
{
const XMLAttribute* att = e.GetAttribute ( "first", false );
if ( att != NULL )
{
- if ( !_stricmp ( att->value.c_str(), "true" ) )
+ if ( !stricmp ( att->value.c_str(), "true" ) )
first = true;
- else if ( _stricmp ( att->value.c_str(), "false" ) )
+ else if ( stricmp ( att->value.c_str(), "false" ) )
{
throw XMLInvalidBuildFileException (
e.location,
{
// check for c++ file
string ext = GetExtension ( e.value );
- if ( !_stricmp ( ext.c_str(), ".cpp" ) )
+ if ( !stricmp ( ext.c_str(), ".cpp" ) )
cplusplus = true;
- else if ( !_stricmp ( ext.c_str(), ".cc" ) )
+ else if ( !stricmp ( ext.c_str(), ".cc" ) )
cplusplus = true;
- else if ( !_stricmp ( ext.c_str(), ".cxx" ) )
+ else if ( !stricmp ( ext.c_str(), ".cxx" ) )
cplusplus = true;
}
File* pFile = new File ( directory,
if ( att != NULL )
{
const char* p = att->value.c_str();
- if ( !_stricmp ( p, "true" ) || !_stricmp ( p, "yes" ) )
+ if ( !stricmp ( p, "true" ) || !stricmp ( p, "yes" ) )
isInternal = true;
- else if ( !_stricmp ( p, "false" ) || !_stricmp ( p, "no" ) )
+ else if ( !stricmp ( p, "false" ) || !stricmp ( p, "no" ) )
isInternal = false;
else
{
#ifdef _MSC_VER
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
+#pragma warning ( disable : 4996 ) // CRT deprecate
#endif//_MSC_VER
#include <string>
Name="VCCLCompilerTool"\r
Optimization="0"\r
AdditionalIncludeDirectories="..,../../lib/inflib,../../include/reactos;../../include"\r
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;INFLIB_HOST;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"\r
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;INFLIB_HOST;_CRT_SECURE_NO_WARNINGS;_CRT_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE"\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
DefaultCharIsUnsigned="true"\r
bool
TestSupportCode::IsTestFile ( string& filename ) const
{
- if ( _stricmp ( GetFilename ( filename ).c_str (), "setup.c" ) == 0 )
+ if ( stricmp ( GetFilename ( filename ).c_str (), "setup.c" ) == 0 )
return false;
return true;
}