mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
second part of windows/osx macro change - forgot *.cpp files
This commit is contained in:
parent
12d5a33626
commit
e39b66fb7c
4 changed files with 19 additions and 19 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#ifdef _WINDOWS
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#include "IncludeWindows.h"
|
||||
#endif
|
||||
#if defined(__linux__) || defined(__MACOS__)
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
namespace wvNS {
|
||||
UMicroseconds& UMicroseconds::ReadTime()
|
||||
{
|
||||
#ifdef _WINDOWS
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
LARGE_INTEGER Frequency, Count ;
|
||||
|
||||
QueryPerformanceFrequency(&Frequency) ;
|
||||
|
|
@ -18,7 +18,7 @@ UMicroseconds& UMicroseconds::ReadTime()
|
|||
theTime = uint64_t((Count.QuadPart * 1000000.0 / Frequency.QuadPart));
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(__MACOS__)
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
// Mac code replaced by posix calls, to reduce Carbon dependency.
|
||||
timeval buf;
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ UMicroseconds& UMicroseconds::ReadTime()
|
|||
}
|
||||
/*
|
||||
Removed in favor of the posix implementation.
|
||||
#ifdef __MACOS__
|
||||
#ifdef __APPLE__
|
||||
uint32_t UMicroseconds::hi() {return reinterpret_cast<UnsignedWide*>(&theTime)->hi;}
|
||||
uint32_t UMicroseconds::lo() {return reinterpret_cast<UnsignedWide*>(&theTime)->lo;}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue