mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
temporarily revert to query "defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER)"
svn path=/trunk/; revision=44999
This commit is contained in:
@@ -182,12 +182,9 @@ BOOL exists_path(LPCTSTR path);
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _MS_VER // modified gedmurphy's "secure CRT usage rehack"
|
||||
#undef __STDC_WANT_SECURE_LIB__
|
||||
#endif
|
||||
|
||||
// secure CRT functions
|
||||
#ifdef __STDC_WANT_SECURE_LIB__ // for VS 2005: _MSC_VER>=1400
|
||||
//@@ _MS_VER: temporarily needed for the ReactOS build environment
|
||||
#if defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER) // for VS 2005: _MSC_VER>=1400
|
||||
|
||||
#define _stprintf_s1 _stprintf_s
|
||||
#define _stprintf_s2 _stprintf_s
|
||||
|
||||
@@ -518,7 +518,8 @@ struct FileHolder
|
||||
{
|
||||
FileHolder(LPCTSTR path, LPCTSTR mode)
|
||||
{
|
||||
#ifdef __STDC_WANT_SECURE_LIB__
|
||||
//@@ _MS_VER: temporarily needed for the ReactOS build environment
|
||||
#if defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER) // secure CRT functions using VS 2005
|
||||
if (_tfopen_s(&_pfile, path, mode) != 0)
|
||||
_pfile = NULL;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user