X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a5e62674f8c9e923956d67d95f5d0c97763ca1f..27a97d02eb2f3dcf031c5cbcd3c1321c6d35fce8:/include/wx/geometry.h?ds=sidebyside diff --git a/include/wx/geometry.h b/include/wx/geometry.h index 47c083420a..7bc7f527eb 100644 --- a/include/wx/geometry.h +++ b/include/wx/geometry.h @@ -18,6 +18,10 @@ #include "wx/defs.h" +#ifndef wxUSE_GEOMETRY + #define wxUSE_GEOMETRY 0 +#endif + #if wxUSE_GEOMETRY #include "wx/utils.h" @@ -27,7 +31,11 @@ #ifdef __WXMSW__ #define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c ) #elif defined( __WXMAC__ ) + #ifdef __WXMAC_X__ + #include + #else #include "Math64.h" + #endif #define wxMulDivInt32( a , b , c ) S32Set( S64Div( S64Multiply( S64Set(a) , S64Set(b) ) , S64Set(c) ) ) #else #define wxMulDivInt32( a , b , c ) ((wxInt32)((a)*(((wxDouble)b)/((wxDouble)c))))