changed the MulDiv Macro removing macheader dep.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,8 +31,7 @@
|
|||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
#define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c )
|
#define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c )
|
||||||
#elif defined( __WXMAC__ )
|
#elif defined( __WXMAC__ )
|
||||||
#include "Math64.h"
|
#define wxMulDivInt32( a , b , c ) ( (wxInt32) ( ( (wxInt64)(a) * (wxInt64)(b) ) / (wxInt64)(c) ) )
|
||||||
#define wxMulDivInt32( a , b , c ) S32Set( S64Div( S64Multiply( S64Set(a) , S64Set(b) ) , S64Set(c) ) )
|
|
||||||
#else
|
#else
|
||||||
#define wxMulDivInt32( a , b , c ) ((wxInt32)((a)*(((wxDouble)b)/((wxDouble)c))))
|
#define wxMulDivInt32( a , b , c ) ((wxInt32)((a)*(((wxDouble)b)/((wxDouble)c))))
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user