Fixes for QNX 6.6 Neitrino support.
This commit is contained in:
@@ -3750,8 +3750,15 @@ template<typename _Tp> inline ptrdiff_t operator - (const SeqIterator<_Tp>& a,
|
||||
const SeqIterator<_Tp>& b)
|
||||
{
|
||||
ptrdiff_t delta = a.index - b.index, n = a.seq->total;
|
||||
#if defined(__QNX__)
|
||||
// No long std::abs(long) in QNX
|
||||
long absdelta = (delta < 0) ? -delta : delta;
|
||||
if( absdelta > n )
|
||||
#else
|
||||
if( std::abs(static_cast<long>(delta)) > n )
|
||||
#endif
|
||||
delta += delta < 0 ? n : -n;
|
||||
|
||||
return delta;
|
||||
}
|
||||
|
||||
|
@@ -157,7 +157,7 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix)
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__
|
||||
#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __QNX__
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
Reference in New Issue
Block a user