X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2af95167f5be66ed9ae76fb29d01347d90316652..22c1dcbb5928bd7db824e15d0cb712504da72cf6:/utils/HelpGen/src/scriptbinder.cpp?ds=sidebyside diff --git a/utils/HelpGen/src/scriptbinder.cpp b/utils/HelpGen/src/scriptbinder.cpp index eb769b7461..affd6634e4 100644 --- a/utils/HelpGen/src/scriptbinder.cpp +++ b/utils/HelpGen/src/scriptbinder.cpp @@ -20,9 +20,6 @@ #include "wx/wx.h" #endif -#ifndef __DARWIN__ -# include -#endif #include #include @@ -33,7 +30,7 @@ // helper functions -static size_t log2(size_t nr) +static size_t wx_log2(size_t nr) { size_t tmp = 0; while (nr >= 2 ) @@ -66,7 +63,7 @@ void ScriptStream::WriteBytes( const void* srcBuf, size_t count ) if ( m_Size + count > m_Capacity ) { m_Capacity = - ( 0x2 << (log2( m_Size + count ) + 1 ) ); + ( 0x2 << (wx_log2( m_Size + count ) + 1 ) ); if ( m_Capacity < 128 ) m_Capacity = 128;