define wxWindowNative for wxUniv compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-06-29 16:51:05 +00:00
parent cbf656555e
commit a5b3669d76

View File

@@ -953,15 +953,19 @@ private:
// include the declaration of the platform-specific class // include the declaration of the platform-specific class
#if defined(__WXMSW__) #if defined(__WXMSW__)
#if !defined(__WXUNIVERSAL__) #ifdef __WXUNIVERSAL__
#define wxWindowNative wxWindowMSW
#else // !wxUniv
#define wxWindowMSW wxWindow #define wxWindowMSW wxWindow
#define sm_classwxWindowMSW sm_classwxWindow #define sm_classwxWindowMSW sm_classwxWindow
#endif // wxUniv #endif // wxUniv/!wxUniv
#include "wx/msw/window.h" #include "wx/msw/window.h"
#elif defined(__WXMOTIF__) #elif defined(__WXMOTIF__)
#include "wx/motif/window.h" #include "wx/motif/window.h"
#elif defined(__WXGTK__) #elif defined(__WXGTK__)
#if !defined(__WXUNIVERSAL__) #ifdef __WXUNIVERSAL__
#define wxWindowNative wxWindowGTK
#else // !wxUniv
#define wxWindowGTK wxWindow #define wxWindowGTK wxWindow
#define sm_classwxWindowGTK sm_classwxWindow #define sm_classwxWindowGTK sm_classwxWindow
#endif // wxUniv #endif // wxUniv
@@ -977,6 +981,10 @@ private:
// for wxUniversal, we now derive the real wxWindow from wxWindow<platform>, // for wxUniversal, we now derive the real wxWindow from wxWindow<platform>,
// for the native ports we already have defined it above // for the native ports we already have defined it above
#if defined(__WXUNIVERSAL__) #if defined(__WXUNIVERSAL__)
#ifndef wxWindowNative
#error "wxWindowNative must be defined above!"
#endif
#include "wx/univ/window.h" #include "wx/univ/window.h"
#endif // wxUniv #endif // wxUniv