// mac
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if __option(profile)
#include <profiler.h>
#endif
#include "wx/mac/macnotfy.h"
#if wxUSE_SOCKETS
- #ifdef __APPLE__
+ #ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
#else
#include <OpenTransport.h>
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
// test the minimal configuration necessary
#if !TARGET_CARBON
return FALSE ;
}
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if __option(profile)
ProfilerInit( collectDetailed, bestTimeBase , 20000 , 40 ) ;
#endif
// now avoid exceptions thrown for new (bad_alloc)
-#ifndef __UNIX__
+#ifndef __DARWIN__
std::__throws_bad_alloc = FALSE ;
#endif
wxClassInfo::CleanUpClasses();
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if __option(profile)
ProfilerDump( "\papp.prof" ) ;
ProfilerTerm() ;
IMPLEMENT_ABSTRACT_CLASS(wxBitmapHandlerBase, wxObject )
#endif
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include <ApplicationServices/ApplicationServices.h>
#else
#include <PictUtils.h>
if( mask )
{
-#ifdef __UNIX__
+#ifdef __DARWIN__
RGBColor trans = white;
#else
RGBBackColor( &gray );
panel->SetDefaultItem(this);
}
-#ifdef __UNIX__
+#ifdef __DARWIN__
Boolean inData;
if ( btnOldDefault && btnOldDefault->m_macControl )
{
// mac
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if __option(profile)
#include <profiler.h>
#endif
#include "wx/mac/macnotfy.h"
#if wxUSE_SOCKETS
- #ifdef __APPLE__
+ #ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
#else
#include <OpenTransport.h>
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
// test the minimal configuration necessary
#if !TARGET_CARBON
return FALSE ;
}
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if __option(profile)
ProfilerInit( collectDetailed, bestTimeBase , 20000 , 40 ) ;
#endif
// now avoid exceptions thrown for new (bad_alloc)
-#ifndef __UNIX__
+#ifndef __DARWIN__
std::__throws_bad_alloc = FALSE ;
#endif
wxClassInfo::CleanUpClasses();
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if __option(profile)
ProfilerDump( "\papp.prof" ) ;
ProfilerTerm() ;
IMPLEMENT_ABSTRACT_CLASS(wxBitmapHandlerBase, wxObject )
#endif
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include <ApplicationServices/ApplicationServices.h>
#else
#include <PictUtils.h>
if( mask )
{
-#ifdef __UNIX__
+#ifdef __DARWIN__
RGBColor trans = white;
#else
RGBBackColor( &gray );
panel->SetDefaultItem(this);
}
-#ifdef __UNIX__
+#ifdef __DARWIN__
Boolean inData;
if ( btnOldDefault && btnOldDefault->m_macControl )
{
#define twips2mm 0.0176388888889
#define mm2pt 2.83464566929
#define pt2mm 0.352777777778
-#ifndef __UNIX__
+#ifndef __DARWIN__
const double M_PI = 3.14159265358979 ;
#endif
const double RAD2DEG = 180.0 / M_PI;
#include "wx/cmndata.h"
-#if defined(__UNIX__)
+#ifdef __DARWIN__
#include <Carbon/Carbon.h>
#else
#include <Navigation.h>
#include "wx/dir.h"
#include "wx/filefn.h" // for wxPathExists()
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
#include <windows.h>
#endif
-#if defined(__WXMAC__) && !defined(__UNIX__)
+#ifndef __DARWIN__
#include "morefile.h"
#include "moreextr.h"
#include "fullpath.h"
m_CPB.hFileInfo.ioNamePtr = m_name ;
m_index = 0 ;
-#ifdef __WXMAC_X__
+#ifdef __DARWIN__
// TODO: what are we supposed to do for Mac OS X
#else
FSpGetDirectoryID( &fsspec , &m_dirId , &m_isDir ) ;
// ----------------------------------------------------------------------------
// wxTextDropTarget
// ----------------------------------------------------------------------------
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
bool wxTextDropTarget::OnDrop( wxCoord x, wxCoord y, const void *pData )
{
OnDropText( x, y, (const char*)pData );
return TRUE;
};
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
size_t wxTextDropTarget::GetFormatCount() const
{
return 1;
// wxFileDropTarget
// ----------------------------------------------------------------------------
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
bool wxFileDropTarget::OnDropFiles( wxCoord x, wxCoord y, size_t nFiles, const char * const WXUNUSED(aszFiles)[] )
{
printf( "Got %d dropped files.\n", (int)nFiles );
return OnDropFiles(x, y, 1, &filenames);
}
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
size_t wxFileDropTarget::GetFormatCount() const
{
return 1;
#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
#ifndef FALSE
#define qDebug2 1
extern pascal void OTDebugStr(const char* str);
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
#include <OTDebug.h>
#endif
InetSvcRef gInetSvcRef = 0 ;
ret.opt.maxlen = kOTFourByteOptionSize;
opt->level = INET_IP; // dealing with an IP Level function
-#ifdef __UNIX__
+#ifdef __DARWIN__
opt->name = kIP_REUSEADDR;
#else
opt->name = IP_REUSEADDR;
#include "wx/log.h"
#include "wx/utils.h"
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include "ldef/extldef.h"
#else
#include "extldef.h"
// Construct a menu with optional title (then use append)
-#ifdef __UNIX__
+#ifdef __DARWIN__
short wxMenu::s_macNextMenuId = 3 ;
#else
short wxMenu::s_macNextMenuId = 2 ;
return true ;
}
}
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
else if ( macMenuId == kHMHelpMenuID )
{
int menuItem = formerHelpMenuItems ;
}
}
}
-#endif // __WXMAC_X__
+#endif // __DARWIN__
for (pos = 0, node = GetMenuItems().First(); node; node = node->Next(), pos++)
{
for (int i = 0; i < m_menus.GetCount() ; i++)
{
if ( m_menus[i]->MacGetMenuId() == macMenuId
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
||
( macMenuId == kHMHelpMenuID && ( m_titles[i] == "?" || m_titles[i] == "&?" || m_titles[i] == wxApp::s_macHelpMenuTitleName ) )
#endif
// check that the page index is valid
#define IS_VALID_PAGE(nPage) (((nPage) >= 0) && ((nPage) < GetPageCount()))
-#ifdef __WXMAC_X__
+#ifdef __DARWIN__
// I got these values for Mac OS X from the Appearance mgr docs. (Mark Newsam)
const short kwxMacTabLeftMargin = 20 ;
const short kwxMacTabTopMargin = 38 ;
// common part of all ctors
void wxNotebook::Init()
{
-#ifdef __WXMAC_X__
+#ifdef __DARWIN__
m_macHorizontalBorder = 7;
m_macVerticalBorder = 8;
#endif
# include <fstream>
#endif
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
# include <windows.h>
#endif
#include "wx/msgdlg.h"
#pragma implementation "textctrl.h"
#endif
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include <sys/types.h>
#include <sys/stat.h>
#else
#if defined(__BORLANDC__) && !defined(__WIN32__)
#include <alloc.h>
-#elif !defined(__MWERKS__) && !defined(__GNUWIN32) && !defined(__WXMAC_X__)
+#elif !defined(__MWERKS__) && !defined(__GNUWIN32) && !defined(__DARWIN__)
#include <malloc.h>
#endif
#include "wx/mac/uma.h"
#include "wx/mac/aga.h"
-#ifndef __UNIX__
+#ifndef __DARWIN__
#include <Navigation.h>
#endif
#endif // UMA_USE_WINDOWMGR
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if TARGET_CARBON
// Call currently implicitely done : InitFloatingWindows() ;
#else
#include <string.h>
#include <stdarg.h>
-#ifndef __UNIX__
+#ifndef __DARWIN__
// defined in unix/utilsunx.cpp for Mac OS X
// get full hostname (with domain name if possible)
wxMessageBox(wxBuffer);
wxExit();
}
-#endif // !__UNIX__
+#endif // !__DARWIN__
// Emit a beeeeeep
void wxBell()
return (wxBusyCursorCount > 0);
}
-#ifndef __UNIX__
+#ifndef __DARWIN__
wxString wxMacFindFolder( short vol,
OSType folderType,
Boolean createFolder)
}
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
char *wxGetUserHome (const wxString& user)
{
// TODO
#endif
#include "wx/utils.h"
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include "wx/unix/execute.h"
#endif
#include <stdlib.h>
#include <string.h>
-#ifndef __UNIX__
+#ifndef __DARWIN__
#define wxEXECUTE_WIN_MESSAGE 10000
long wxExecute(const wxString& command, bool sync, wxProcess *handler)
}
#endif
-#ifdef __UNIX__
+#ifdef __DARWIN__
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
{
wxFAIL_MSG(wxT("wxAddProcessCallback() function not ready"));
return 0;
}
-#endif
\ No newline at end of file
+#endif
#define twips2mm 0.0176388888889
#define mm2pt 2.83464566929
#define pt2mm 0.352777777778
-#ifndef __UNIX__
+#ifndef __DARWIN__
const double M_PI = 3.14159265358979 ;
#endif
const double RAD2DEG = 180.0 / M_PI;
#include "wx/cmndata.h"
-#if defined(__UNIX__)
+#ifdef __DARWIN__
#include <Carbon/Carbon.h>
#else
#include <Navigation.h>
#include "wx/dir.h"
#include "wx/filefn.h" // for wxPathExists()
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
#include <windows.h>
#endif
-#if defined(__WXMAC__) && !defined(__UNIX__)
+#ifndef __DARWIN__
#include "morefile.h"
#include "moreextr.h"
#include "fullpath.h"
m_CPB.hFileInfo.ioNamePtr = m_name ;
m_index = 0 ;
-#ifdef __WXMAC_X__
+#ifdef __DARWIN__
// TODO: what are we supposed to do for Mac OS X
#else
FSpGetDirectoryID( &fsspec , &m_dirId , &m_isDir ) ;
// ----------------------------------------------------------------------------
// wxTextDropTarget
// ----------------------------------------------------------------------------
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
bool wxTextDropTarget::OnDrop( wxCoord x, wxCoord y, const void *pData )
{
OnDropText( x, y, (const char*)pData );
return TRUE;
};
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
size_t wxTextDropTarget::GetFormatCount() const
{
return 1;
// wxFileDropTarget
// ----------------------------------------------------------------------------
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
bool wxFileDropTarget::OnDropFiles( wxCoord x, wxCoord y, size_t nFiles, const char * const WXUNUSED(aszFiles)[] )
{
printf( "Got %d dropped files.\n", (int)nFiles );
return OnDropFiles(x, y, 1, &filenames);
}
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
size_t wxFileDropTarget::GetFormatCount() const
{
return 1;
#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include <CoreServices/CoreServices.h>
#ifndef FALSE
#define qDebug2 1
extern pascal void OTDebugStr(const char* str);
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
#include <OTDebug.h>
#endif
InetSvcRef gInetSvcRef = 0 ;
ret.opt.maxlen = kOTFourByteOptionSize;
opt->level = INET_IP; // dealing with an IP Level function
-#ifdef __UNIX__
+#ifdef __DARWIN__
opt->name = kIP_REUSEADDR;
#else
opt->name = IP_REUSEADDR;
#include "wx/log.h"
#include "wx/utils.h"
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include "ldef/extldef.h"
#else
#include "extldef.h"
// Construct a menu with optional title (then use append)
-#ifdef __UNIX__
+#ifdef __DARWIN__
short wxMenu::s_macNextMenuId = 3 ;
#else
short wxMenu::s_macNextMenuId = 2 ;
return true ;
}
}
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
else if ( macMenuId == kHMHelpMenuID )
{
int menuItem = formerHelpMenuItems ;
}
}
}
-#endif // __WXMAC_X__
+#endif // __DARWIN__
for (pos = 0, node = GetMenuItems().First(); node; node = node->Next(), pos++)
{
for (int i = 0; i < m_menus.GetCount() ; i++)
{
if ( m_menus[i]->MacGetMenuId() == macMenuId
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
||
( macMenuId == kHMHelpMenuID && ( m_titles[i] == "?" || m_titles[i] == "&?" || m_titles[i] == wxApp::s_macHelpMenuTitleName ) )
#endif
// check that the page index is valid
#define IS_VALID_PAGE(nPage) (((nPage) >= 0) && ((nPage) < GetPageCount()))
-#ifdef __WXMAC_X__
+#ifdef __DARWIN__
// I got these values for Mac OS X from the Appearance mgr docs. (Mark Newsam)
const short kwxMacTabLeftMargin = 20 ;
const short kwxMacTabTopMargin = 38 ;
// common part of all ctors
void wxNotebook::Init()
{
-#ifdef __WXMAC_X__
+#ifdef __DARWIN__
m_macHorizontalBorder = 7;
m_macVerticalBorder = 8;
#endif
# include <fstream>
#endif
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
# include <windows.h>
#endif
#include "wx/msgdlg.h"
#pragma implementation "textctrl.h"
#endif
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include <sys/types.h>
#include <sys/stat.h>
#else
#if defined(__BORLANDC__) && !defined(__WIN32__)
#include <alloc.h>
-#elif !defined(__MWERKS__) && !defined(__GNUWIN32) && !defined(__WXMAC_X__)
+#elif !defined(__MWERKS__) && !defined(__GNUWIN32) && !defined(__DARWIN__)
#include <malloc.h>
#endif
#include "wx/mac/uma.h"
#include "wx/mac/aga.h"
-#ifndef __UNIX__
+#ifndef __DARWIN__
#include <Navigation.h>
#endif
#endif // UMA_USE_WINDOWMGR
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
#if TARGET_CARBON
// Call currently implicitely done : InitFloatingWindows() ;
#else
#include <string.h>
#include <stdarg.h>
-#ifndef __UNIX__
+#ifndef __DARWIN__
// defined in unix/utilsunx.cpp for Mac OS X
// get full hostname (with domain name if possible)
wxMessageBox(wxBuffer);
wxExit();
}
-#endif // !__UNIX__
+#endif // !__DARWIN__
// Emit a beeeeeep
void wxBell()
return (wxBusyCursorCount > 0);
}
-#ifndef __UNIX__
+#ifndef __DARWIN__
wxString wxMacFindFolder( short vol,
OSType folderType,
Boolean createFolder)
}
#endif
-#ifndef __UNIX__
+#ifndef __DARWIN__
char *wxGetUserHome (const wxString& user)
{
// TODO
#endif
#include "wx/utils.h"
-#ifdef __UNIX__
+#ifdef __DARWIN__
#include "wx/unix/execute.h"
#endif
#include <stdlib.h>
#include <string.h>
-#ifndef __UNIX__
+#ifndef __DARWIN__
#define wxEXECUTE_WIN_MESSAGE 10000
long wxExecute(const wxString& command, bool sync, wxProcess *handler)
}
#endif
-#ifdef __UNIX__
+#ifdef __DARWIN__
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
{
wxFAIL_MSG(wxT("wxAddProcessCallback() function not ready"));
return 0;
}
-#endif
\ No newline at end of file
+#endif