wxWindows can be configured as wxMac or wxMotif under Mac OS X
replaced __WXMAC_X__ define by __DARWIN__ (general Darwin related issues)
moved dlopen/dlerror code to dynlib.cpp to make it available for wxMotif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11063
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#elif defined(__WXQT__)
#include "wx/qt/dirdlg.h"
#elif defined(__WXMAC__)
#elif defined(__WXQT__)
#include "wx/qt/dirdlg.h"
#elif defined(__WXMAC__)
#include "wx/generic/dirdlgg.h"
#else
#include "wx/mac/dirdlg.h"
#include "wx/generic/dirdlgg.h"
#else
#include "wx/mac/dirdlg.h"
class WXDLLEXPORT wxWindow;
class WXDLLEXPORT wxWindow;
class WXDLLEXPORT wxDataObject;
class WXDLLEXPORT wxTextDataObject;
class WXDLLEXPORT wxFileDataObject;
class WXDLLEXPORT wxDataObject;
class WXDLLEXPORT wxTextDataObject;
class WXDLLEXPORT wxFileDataObject;
class WXDLLEXPORT wxDropSource;
class WXDLLEXPORT wxDropSource;
//-------------------------------------------------------------------------
// wxDataObject
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
// wxDataObject
//-------------------------------------------------------------------------
virtual wxDataFormat GetFormat(size_t n) const = 0;
};
virtual wxDataFormat GetFormat(size_t n) const = 0;
};
//-------------------------------------------------------------------------
// wxTextDropTarget
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
// wxTextDropTarget
//-------------------------------------------------------------------------
#define UMA_USE_8_6 1
#endif
#define UMA_USE_8_6 1
#endif
-#if defined(__POWERPC__) || defined(__APPLE__)
+#if defined(__POWERPC__)
#define UMA_USE_APPEARANCE 1
#define UMA_USE_WINDOWMGR 1
#define UMA_USE_APPEARANCE 1
#define UMA_USE_WINDOWMGR 1
+ #if defined(__DARWIN__)
#include <Carbon/Carbon.h>
#endif
#else
#include <Carbon/Carbon.h>
#endif
#else
# if defined(__VISUALC__) && (__VISUALC__ < 900)
# define wxUSE_WCHAR_T 0 // wchar_t is not available for MSVC++ 1.5
# elif defined(__UNIX__)
# if defined(__VISUALC__) && (__VISUALC__ < 900)
# define wxUSE_WCHAR_T 0 // wchar_t is not available for MSVC++ 1.5
# elif defined(__UNIX__)
-# if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || (defined(__APPLE__) && defined(__UNIX__))
+# if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || (defined(__DARWIN__))
# define wxUSE_WCHAR_T 1
# else
# define wxUSE_WCHAR_T 0
# define wxUSE_WCHAR_T 1
# else
# define wxUSE_WCHAR_T 0
# ifdef HAVE_WCSTR_H
# include <wcstr.h>
# else
# ifdef HAVE_WCSTR_H
# include <wcstr.h>
# else
-# if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__UNIX__))
+# if defined(__FreeBSD__) || defined(__DARWIN__)
# include <stdlib.h>
# define wxNEED_WCSLEN
# else
# include <stdlib.h>
# define wxNEED_WCSLEN
# else
# define wxUChar unsigned char
# endif
# define wxUChar unsigned char
# endif
-# if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__UNIX__))
+# if defined(__FreeBSD__) || defined(__DARWIN__)