Add cmath include to fix MacOS build

This commit is contained in:
Ted John 2017-01-02 23:21:09 +00:00
parent cfa1c62490
commit 683fc90ea7
3 changed files with 2 additions and 2 deletions

View File

@ -14,6 +14,7 @@
*****************************************************************************/
#pragma endregion
#include <cmath>
#include <speex/speex_resampler.h>
#include "../core/Math.hpp"
#include "AudioChannel.h"

View File

@ -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)
{

View File

@ -14,7 +14,6 @@
*****************************************************************************/
#pragma endregion
#include <cmath>
#include <list>
#include "../core/Guard.hpp"
#include "../core/Math.hpp"