Skip to content

Commit

Permalink
Merge 80ae50f into 6849aee
Browse files Browse the repository at this point in the history
  • Loading branch information
basvodde committed Jun 12, 2020
2 parents 6849aee + 80ae50f commit d2a684f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Platforms/Gcc/UtestPlatform.cpp
Expand Up @@ -211,7 +211,7 @@ static const char* TimeStringImplementation()
{
time_t theTime = time(NULLPTR);
static char dateTime[80];
#ifdef _WIN32
#if defined(_WIN32) && defined(MINGW_HAS_SECURE_API)
static struct tm lastlocaltime;
localtime_s(&lastlocaltime, &theTime);
struct tm *tmp = &lastlocaltime;
Expand All @@ -237,7 +237,7 @@ int (*PlatformSpecificVSNprintf)(char *str, size_t size, const char* format, va_

static PlatformSpecificFile PlatformSpecificFOpenImplementation(const char* filename, const char* flag)
{
#ifdef _WIN32
#if defined(_WIN32) && defined(MINGW_HAS_SECURE_API)
FILE* file;
fopen_s(&file, filename, flag);
return file;
Expand Down

0 comments on commit d2a684f

Please sign in to comment.