[Kde-games-devel] KPat broken for Windows

Casper van Donderen casper.vandonderen at gmail.com
Mon Aug 17 15:40:09 CEST 2009


Hi, While trying to compile trunk KPat fails for me on this part:

        if ( std::signbit( p->pilePos().x() ) == std::signbit(
p->reservedSpace().width() ) )
            neededPileArea.setWidth( qAbs( p->pilePos().x() +
p->reservedSpace().width() ) );
        else
            neededPileArea.setWidth( qMax( qAbs( p->pilePos().x() ),
qAbs( p->reservedSpace().width() ) ) );

        if ( std::signbit( p->pilePos().y() ) == std::signbit(
p->reservedSpace().height() ) )
            neededPileArea.setHeight( qAbs( p->pilePos().y() +
p->reservedSpace().height() ) );
        else
            neededPileArea.setHeight( qMax( qAbs( p->pilePos().y() ),
qAbs( p->reservedSpace().height() ) ) );

(dealer.cpp line 1925 onwards)

signbit() is not available in BSD & (MSVC) Windows. it is not
available in math.h on Windows.

Please use another solution for this....

Regards,

Casper


More information about the kde-games-devel mailing list