Ganael Laplanche: fix include dependencies for FreeBSD support
This commit is contained in:
parent
067ff4f8ed
commit
6e662fe4d6
@ -42,6 +42,7 @@
|
|||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
@ -297,19 +297,19 @@ doComparison (const SGPropertyNode * left, const SGPropertyNode * right, const S
|
|||||||
}
|
}
|
||||||
case props::INT:
|
case props::INT:
|
||||||
return doComp<int>(left->getIntValue(), right->getIntValue(),
|
return doComp<int>(left->getIntValue(), right->getIntValue(),
|
||||||
precision ? abs(precision->getIntValue()/2) : 0 );
|
precision ? std::abs(precision->getIntValue()/2) : 0 );
|
||||||
|
|
||||||
case props::LONG:
|
case props::LONG:
|
||||||
return doComp<long>(left->getLongValue(), right->getLongValue(),
|
return doComp<long>(left->getLongValue(), right->getLongValue(),
|
||||||
precision ? abs(precision->getLongValue()/2L) : 0L );
|
precision ? std::abs(precision->getLongValue()/2L) : 0L );
|
||||||
|
|
||||||
case props::FLOAT:
|
case props::FLOAT:
|
||||||
return doComp<float>(left->getFloatValue(), right->getFloatValue(),
|
return doComp<float>(left->getFloatValue(), right->getFloatValue(),
|
||||||
precision ? fabs(precision->getFloatValue()/2.0f) : 0.0f );
|
precision ? std::fabs(precision->getFloatValue()/2.0f) : 0.0f );
|
||||||
|
|
||||||
case props::DOUBLE:
|
case props::DOUBLE:
|
||||||
return doComp<double>(left->getDoubleValue(), right->getDoubleValue(),
|
return doComp<double>(left->getDoubleValue(), right->getDoubleValue(),
|
||||||
precision ? fabs(precision->getDoubleValue()/2.0) : 0.0 );
|
precision ? std::fabs(precision->getDoubleValue()/2.0) : 0.0 );
|
||||||
|
|
||||||
case props::STRING:
|
case props::STRING:
|
||||||
case props::NONE:
|
case props::NONE:
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
// working around MSVC weirdness with props.hxx and SGMathFwd
|
// working around MSVC weirdness with props.hxx and SGMathFwd
|
||||||
|
Loading…
Reference in New Issue
Block a user