#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)
{
return FALSE;
}
+const wxChar* wxGetHomeDir(wxString *pstr)
+{
+ *pstr = wxMacFindFolder( (short) kOnSystemDisk, kPreferencesFolderType, kDontCreateFolder ) ;
+ return pstr->c_str() ;
+}
+
+
+
// Get user name e.g. AUTHOR
bool wxGetUserName(char *buf, int maxSize)
{
{
// TODO
}
+#endif // !__UNIX__
// Emit a beeeeeep
void wxBell()
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.
*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)