mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add cmath include to fix MacOS build
This commit is contained in:
parent
cfa1c62490
commit
683fc90ea7
|
@ -14,6 +14,7 @@
|
|||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include <cmath>
|
||||
#include <speex/speex_resampler.h>
|
||||
#include "../core/Math.hpp"
|
||||
#include "AudioChannel.h"
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
sint64 currentPosition = SDL_RWtell(_rw);
|
||||
if (currentPosition != -1)
|
||||
{
|
||||
size_t bytesToRead = Math::Min(len, _dataLength - offset);
|
||||
size_t bytesToRead = Math::Min<size_t>(len, _dataLength - offset);
|
||||
sint64 dataOffset = _dataBegin + offset;
|
||||
if (currentPosition != dataOffset)
|
||||
{
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include <cmath>
|
||||
#include <list>
|
||||
#include "../core/Guard.hpp"
|
||||
#include "../core/Math.hpp"
|
||||
|
|
Loading…
Reference in New Issue