modifications for compilation under Mac OS X

applied patches extracted from submission by Marc Newsam (tested under Mac OS 9)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-02-15 21:51:14 +00:00
parent f0c5ebdc0d
commit 03e11df547
149 changed files with 1693 additions and 761 deletions

View File

@@ -27,6 +27,9 @@
#include <string.h>
#include <stdarg.h>
#ifndef __UNIX__
// defined in unix/utilsunx.cpp for Mac OS X
// get full hostname (with domain name if possible)
bool wxGetFullHostName(wxChar *buf, int maxSize)
{
@@ -123,6 +126,7 @@ void wxFatalError(const wxString& msg, const wxString& title)
{
// TODO
}
#endif // !__UNIX__
// Emit a beeeeeep
void wxBell()
@@ -275,11 +279,13 @@ wxString wxMacFindFolder( short vol,
return strDir ;
}
#ifndef __UNIX__
char *wxGetUserHome (const wxString& user)
{
// TODO
return NULL;
}
#endif
// Check whether this window wants to process messages, e.g. Stop button
// in long calculations.
@@ -328,13 +334,13 @@ void wxDisplaySize(int *width, int *height)
*width = screenBits.bounds.right - screenBits.bounds.left ;
*height = screenBits.bounds.bottom - screenBits.bounds.top ;
#if TARGET_CARBON
#if TARGET_CARBON
SInt16 mheight ;
GetThemeMenuBarHeight( &mheight ) ;
*height -= mheight ;
#else
*height -= LMGetMBarHeight() ;
#endif
#endif
}
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)