+#include <os2.h>
+
+#if wxONLY_WATCOM_EARLIER_THAN(1,4)
+ inline HATOMTBL APIENTRY WinQuerySystemAtomTable(VOID){return NULL;}
+ inline ULONG APIENTRY WinQueryAtomName(HATOMTBL,ATOM,PCSZ,ULONG){return 0;}
+ inline LONG APIENTRY GpiPointArc(HPS,PPOINTL){return GPI_ERROR;}
+ inline BOOL APIENTRY WinDrawPointer(HPS,LONG,LONG,HPOINTER,ULONG){return FALSE;}
+ inline HPOINTER APIENTRY WinCreatePointerIndirect(HWND,PPOINTERINFO){return NULLHANDLE;}
+ inline BOOL APIENTRY WinGetMaxPosition(HWND,PSWP){return FALSE;}
+ inline BOOL APIENTRY WinGetMinPosition(HWND,PSWP,PPOINTL){return FALSE;}
+#endif
+
+#if defined(__WATCOMC__) && defined(__WXMOTIF__)
+ #include <os2def.h>
+ #define I_NEED_OS2_H
+ #include <X11/Xmd.h>
+
+ // include this header from here for many of the GUI related code
+ #if wxUSE_GUI
+ extern "C" {
+ #include <Xm/VendorSP.h>
+ }
+ #endif
+
+ // provide Unix-like pipe()
+ #include <types.h>
+ #include <tcpustd.h>
+ #include <sys/time.h>
+ // Use ::DosCreatePipe or ::DosCreateNPipe under OS/2
+ // for more see http://posix2.sourceforge.net/guide.html
+ inline int pipe( int WXUNUSED(filedes)[2] )
+ {
+ wxFAIL_MSG(wxT("Implement first"));
+ return -1;
+ }
+#endif
+
+#if defined (__EMX__) && !defined(USE_OS2_TOOLKIT_HEADERS) && !defined(HAVE_SPBCDATA)
+
+ typedef struct _SPBCDATA {
+ ULONG cbSize; /* Size of control block. */
+ ULONG ulTextLimit; /* Entryfield text limit. */
+ LONG lLowerLimit; /* Spin lower limit (numeric only). */
+ LONG lUpperLimit; /* Spin upper limit (numeric only). */
+ ULONG idMasterSpb; /* ID of the servant's master spinbutton. */
+ PVOID pHWXCtlData; /* Handwriting control data structure flag. */
+ } SPBCDATA;
+
+ typedef SPBCDATA *PSPBCDATA;
+
+#endif
+
+#include "wx/dlimpexp.h"
+#include "wx/fontenc.h"
+
+class WXDLLIMPEXP_FWD_CORE wxFont;
+class WXDLLIMPEXP_FWD_CORE wxWindow;
+class WXDLLIMPEXP_FWD_BASE wxString;
+class WXDLLIMPEXP_FWD_CORE wxBitmap;
+
+// ---------------------------------------------------------------------------
+// private constants
+// ---------------------------------------------------------------------------
+
+//
+// Constant strings for control names and classes
+//
+
+//
+// Controls
+//
+WXDLLIMPEXP_DATA_CORE(extern const char) wxButtonNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxCheckBoxNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxChoiceNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxComboBoxNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxDialogNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxFrameNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxGaugeNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxStaticBoxNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxListBoxNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxStaticLineNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxStaticTextNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxStaticBitmapNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxPanelNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxRadioBoxNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxRadioButtonNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxBitmapRadioButtonNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxScrollBarNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxSliderNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxTextCtrlNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxToolBarNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxStatusLineNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxGetTextFromUserPromptStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxMessageBoxCaptionStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxFileSelectorPromptStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxFileSelectorDefaultWildcardStr[];
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxInternalErrorStr;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxFatalErrorStr;
+WXDLLIMPEXP_DATA_CORE(extern const char) wxTreeCtrlNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxDirDialogNameStr[];
+WXDLLIMPEXP_DATA_CORE(extern const char) wxDirDialogDefaultFolderStr[];
+
+//
+// Class names
+//
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxFrameClassName;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxFrameClassNameNoRedraw;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxMDIFrameClassName;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxMDIFrameClassNameNoRedraw;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxMDIChildFrameClassName;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxMDIChildFrameClassNameNoRedraw;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxPanelClassName;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxPanelClassNameNR;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxCanvasClassName;
+WXDLLIMPEXP_DATA_CORE(extern const wxChar*) wxCanvasClassNameNR;
+
+// ---------------------------------------------------------------------------
+// standard icons from the resources
+// ---------------------------------------------------------------------------
+
+#ifdef __WXPM__
+
+WXDLLIMPEXP_DATA_CORE(extern HICON) wxSTD_FRAME_ICON;
+WXDLLIMPEXP_DATA_CORE(extern HICON) wxSTD_MDIPARENTFRAME_ICON;
+WXDLLIMPEXP_DATA_CORE(extern HICON) wxSTD_MDICHILDFRAME_ICON;
+WXDLLIMPEXP_DATA_CORE(extern HICON) wxDEFAULT_FRAME_ICON;
+WXDLLIMPEXP_DATA_CORE(extern HICON) wxDEFAULT_MDIPARENTFRAME_ICON;
+WXDLLIMPEXP_DATA_CORE(extern HICON) wxDEFAULT_MDICHILDFRAME_ICON;
+WXDLLIMPEXP_DATA_CORE(extern HFONT) wxSTATUS_LINE_FONT;
+
+#endif
+
+// ---------------------------------------------------------------------------
+// this defines a CASTWNDPROC macro which casts a pointer to the type of a
+// window proc for PM.
+// MPARAM is a void * but is really a 32-bit value
+// ---------------------------------------------------------------------------
+
+typedef MRESULT (APIENTRY * WndProcCast) (HWND, ULONG, MPARAM, MPARAM);
+#define CASTWNDPROC (WndProcCast)
+
+/*
+ * Decide what window classes we're going to use
+ * for this combination of CTl3D/FAFA settings