Fixes for QNX 6.6 Neitrino support.

This commit is contained in:
Alexander Smorkalov
2014-10-23 13:01:42 +04:00
parent a77a2f357c
commit 6bb6039ebb
10 changed files with 190 additions and 19 deletions

View File

@@ -604,7 +604,12 @@ void ColorGradient::write(FileStorage& fs) const
static void accumBilateral(long delta, long i, long j, long * A, long * b, int threshold)
{
long f = std::abs(delta) < threshold ? 1 : 0;
#ifdef __QNX__
long absdelta = (delta > 0) ? delta : -delta;
long f = absdelta < threshold ? 1 : 0;
#else
long f = std::abs(delta) < threshold ? 1 : 0;
#endif
const long fi = f * i;
const long fj = f * j;