Rehack the explorer hack for secure CRT usage.

This should fix the build, unless there are any more oddities in our tree.

svn path=/trunk/; revision=44929
This commit is contained in:
Ged Murphy 2010-01-04 16:10:33 +00:00
parent b19ad21200
commit e46aff6e85
3 changed files with 3 additions and 3 deletions

View file

@ -158,7 +158,7 @@ String Context::getStackTrace() const
BOOL time_to_filetime(const time_t* t, FILETIME* ftime)
{
#ifdef __STDC_WANT_SECURE_LIB__
#if defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER)
SYSTEMTIME stime;
struct tm tm_;
struct tm* tm = &tm_;

View file

@ -183,7 +183,7 @@ BOOL exists_path(LPCTSTR path);
// secure CRT functions
#ifdef __STDC_WANT_SECURE_LIB__ // for VS 2005: _MSC_VER>=1400
#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

View file

@ -512,7 +512,7 @@ struct FileHolder
{
FileHolder(LPCTSTR path, LPCTSTR mode)
{
#ifdef __STDC_WANT_SECURE_LIB__ // secure CRT functions using VS 2005
#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