| @@ -32,8 +32,9 @@ | |||||
| #endif | #endif | ||||
| #include <clocale> | #include <clocale> | ||||
| #include <ctime> | |||||
| #if defined(CARLA_OS_MAC) || defined(CARLA_OS_WINDOWS) | |||||
| #if defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN) | |||||
| # include "juce_core.h" | # include "juce_core.h" | ||||
| #else | #else | ||||
| # include <cerrno> | # include <cerrno> | ||||
| @@ -154,14 +155,14 @@ ssize_t WriteFileNonBlock(const HANDLE pipeh, const HANDLE cancelh, const void* | |||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| // getMillisecondCounter | // getMillisecondCounter | ||||
| #if ! (defined(CARLA_OS_MAC) || defined(CARLA_OS_WINDOWS)) | |||||
| #if ! (defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN)) | |||||
| static uint32_t lastMSCounterValue = 0; | static uint32_t lastMSCounterValue = 0; | ||||
| #endif | #endif | ||||
| static inline | static inline | ||||
| uint32_t getMillisecondCounter() noexcept | uint32_t getMillisecondCounter() noexcept | ||||
| { | { | ||||
| #if defined(CARLA_OS_MAC) || defined(CARLA_OS_WINDOWS) | |||||
| #if defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN) | |||||
| return juce::Time::getMillisecondCounter(); | return juce::Time::getMillisecondCounter(); | ||||
| #else | #else | ||||
| uint32_t now; | uint32_t now; | ||||