X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3628e0888696a4a1d306e621d477a89c43898f05..098d1f0c65618e49a67f567f2736ca9b4ac3102c:/wxPython/src/helpers.h diff --git a/wxPython/src/helpers.h b/wxPython/src/helpers.h index 449ed32219..55f28dbc7c 100644 --- a/wxPython/src/helpers.h +++ b/wxPython/src/helpers.h @@ -16,6 +16,10 @@ #include #include +//--------------------------------------------------------------------------- +#ifdef __WXMAC__ // avoid a bug in Carbon headers +#define scalb scalbn +#endif //--------------------------------------------------------------------------- typedef unsigned char byte; @@ -459,14 +463,12 @@ public: // virtual int FilterEvent(wxEvent& event); // This one too???? - static bool GetMacDefaultEncodingIsPC(); static bool GetMacSupportPCMenuShortcuts(); static long GetMacAboutMenuItemId(); static long GetMacPreferencesMenuItemId(); static long GetMacExitMenuItemId(); static wxString GetMacHelpMenuTitleName(); - static void SetMacDefaultEncodingIsPC(bool val); static void SetMacSupportPCMenuShortcuts(bool val); static void SetMacAboutMenuItemId(long val); static void SetMacPreferencesMenuItemId(long val); @@ -2114,7 +2116,6 @@ extern wxPyApp *wxPythonApp; bool found; \ wxPyBeginBlockThreads(); \ if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ - PyObject* ro; \ rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \ } \ wxPyEndBlockThreads(); \