Windows build fix

This commit is contained in:
Jack Andersen 2016-03-04 17:21:18 -10:00
parent db415516f6
commit df3a949d61
1 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ static std::chrono::steady_clock::time_point GlobalStart = MonoClock.now();
static inline std::chrono::steady_clock::duration CurrentUptime() static inline std::chrono::steady_clock::duration CurrentUptime()
{return MonoClock.now() - GlobalStart;} {return MonoClock.now() - GlobalStart;}
std::atomic_uint_fast64_t FrameIndex(0); std::atomic_uint_fast64_t FrameIndex(0);
static inline int ConsoleWidth() static inline int ConsoleWidth()
{ {
int retval = 80; int retval = 80;
@ -129,7 +129,7 @@ struct ConsoleLogger : public ILogger
for (int w=0 ; w<width ; ++w) for (int w=0 ; w<width ; ++w)
fprintf(stderr, " "); fprintf(stderr, " ");
fprintf(stderr, "\r"); fprintf(stderr, "\r");
std::chrono::steady_clock::duration tm = CurrentUptime(); std::chrono::steady_clock::duration tm = CurrentUptime();
double tmd = tm.count() * double tmd = tm.count() *
std::chrono::steady_clock::duration::period::num / std::chrono::steady_clock::duration::period::num /
@ -194,7 +194,7 @@ struct ConsoleLogger : public ILogger
SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED); SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED);
fprintf(stderr, "ERROR"); fprintf(stderr, "ERROR");
break; break;
case FatalError: case Fatal:
SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED); SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED);
fprintf(stderr, "FATAL ERROR"); fprintf(stderr, "FATAL ERROR");
break; break;