2007-11-27 11:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/common/hbwince.c
    * added MulDiv() implementation for MinGW32-CE builds
This commit is contained in:
Przemyslaw Czerpak
2007-11-27 10:56:53 +00:00
parent a6284ec5c1
commit 7347a42260
2 changed files with 17 additions and 0 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2007-11-27 11:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/common/hbwince.c
* added MulDiv() implementation for MinGW32-CE builds
2007-11-27 11:31 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/hbmain.c
* make all hb_compI18n*() functions which do not need external access

View File

@@ -672,6 +672,19 @@ HLOCAL WINAPI LocalHandle( LPCVOID p )
}
#endif /* !_MSC_VER || __POCC__ || __XCC__ */
#if defined(__MINGW32CE__)
int WINAPI MulDiv( int nNumber, int nNumerator, int nDenominator )
{
if( nDenominator )
{
HB_LONG llResult = ( HB_LONG ) nNumber * nNumerator / nDenominator;
if( HB_LIM_INT32( llResult ) )
return ( int ) llResult;
}
return -1;
}
#endif /* __MINGW32CE__ */
BOOL WINAPI Arc( HDC h, int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8 )
{
HB_SYMBOL_UNUSED( h );