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__)
-#ifdef __WXMAC_X__
+#ifdef __DARWIN__
#include "wx/generic/dirdlgg.h"
#else
#include "wx/mac/dirdlg.h"
class WXDLLEXPORT wxWindow;
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
class WXDLLEXPORT wxDataObject;
class WXDLLEXPORT wxTextDataObject;
class WXDLLEXPORT wxFileDataObject;
class WXDLLEXPORT wxDropSource;
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
//-------------------------------------------------------------------------
// wxDataObject
//-------------------------------------------------------------------------
virtual wxDataFormat GetFormat(size_t n) const = 0;
};
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
//-------------------------------------------------------------------------
// wxTextDropTarget
//-------------------------------------------------------------------------
#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
- #if defined(__APPLE__)
+ #if defined(__DARWIN__)
#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(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
# 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
# define wxUChar unsigned char
# endif
-# if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__UNIX__))
+# if defined(__FreeBSD__) || defined(__DARWIN__)
# undef _T
# endif