- fixed compilation of Cocoa backend

src/utility/i_time.h:6:15: error: redefinition of 'TimeScale' as different kind of symbol
This commit is contained in:
alexey.lysiuk 2020-03-28 15:38:45 +02:00
parent 51b46f1408
commit 43eb262571

View file

@ -37,7 +37,6 @@
#include "st_console.h" #include "st_console.h"
#include "v_text.h" #include "v_text.h"
#include "version.h" #include "version.h"
#include "i_time.h"
static NSColor* RGB(const uint8_t red, const uint8_t green, const uint8_t blue) static NSColor* RGB(const uint8_t red, const uint8_t green, const uint8_t blue)
@ -199,6 +198,7 @@ struct TimedUpdater
{ {
explicit TimedUpdater(const Function& function) explicit TimedUpdater(const Function& function)
{ {
extern uint64_t I_msTime();
const unsigned int currentTime = I_msTime(); const unsigned int currentTime = I_msTime();
if (currentTime - m_previousTime > interval) if (currentTime - m_previousTime > interval)