Support for automatic setup.h in OS/2 with OW builds. __WXOS2__ final removal. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
# include "wx/msw/chkconf.h"
|
||||
#elif defined(__WXMAC__)
|
||||
# include "wx/mac/chkconf.h"
|
||||
#elif defined(__OS2__)
|
||||
# include "wx/os2/chkconf.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
# include "wx/motif/chkconf.h"
|
||||
#endif
|
||||
|
36
include/wx/os2/chkconf.h
Normal file
36
include/wx/os2/chkconf.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Name: wx/os2/chkconf.h
|
||||
* Purpose: Compiler-specific configuration checking
|
||||
* Author: Julian Smart
|
||||
* Modified by:
|
||||
* Created: 01/02/97
|
||||
* RCS-ID: $Id$
|
||||
* Copyright: (c) Julian Smart
|
||||
* Licence: wxWindows licence
|
||||
*/
|
||||
|
||||
/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
|
||||
|
||||
#ifndef _WX_OS2_CHKCONF_H_
|
||||
#define _WX_OS2_CHKCONF_H_
|
||||
|
||||
#ifdef __WATCOMC__
|
||||
|
||||
/* Watcom builds for OS/2 port are setup.h driven and setup.h is
|
||||
automatically generated from include/wx/setup_inc.h so we have
|
||||
to disable here features not supported currently or enable
|
||||
features required */
|
||||
|
||||
#if wxUSE_STACKWALKER
|
||||
# undef wxUSE_STACKWALKER
|
||||
# define wxUSE_STACKWALKER 0
|
||||
#endif /* wxUSE_STACKWALKER */
|
||||
|
||||
#if !wxUSE_POSTSCRIPT
|
||||
# undef wxUSE_POSTSCRIPT
|
||||
# define wxUSE_POSTSCRIPT 1
|
||||
#endif
|
||||
|
||||
#endif /* __WATCOM__ */
|
||||
|
||||
#endif /* _WX_OS2_CHKCONF_H_ */
|
@@ -20,8 +20,21 @@
|
||||
#define INCL_WINSYS
|
||||
#define INCL_SHLERRORS
|
||||
#define INCL_DOS
|
||||
#define INCL_WINATOM
|
||||
#define INCL_WIN
|
||||
#include <os2.h>
|
||||
|
||||
#if defined(__WATCOMC__) && ( __WATCOMC__ < 1240 )
|
||||
// missing in OpenWatcom 1.3 but added in 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
|
||||
|
@@ -519,7 +519,7 @@
|
||||
( defined( __CYGWIN__ ) && defined( __WINDOWS__ ) ) || \
|
||||
(defined(__WATCOMC__) && __WATCOMC__ >= 1200) ) && \
|
||||
!defined(__DOS__) && \
|
||||
!defined(__WXOS2__) && \
|
||||
!defined(__WXPM__) && \
|
||||
!defined(__WXMOTIF__) && \
|
||||
!defined(__WXGTK__) && \
|
||||
!defined(__WXX11__) && \
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wxprec.h
|
||||
// Name: wx/wxprec.h
|
||||
// Purpose: Includes the appropriate files for precompiled headers
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -50,6 +50,11 @@
|
||||
# include <PalmOS.h>
|
||||
#endif
|
||||
|
||||
// include <os2.h>
|
||||
#ifdef __OS2__
|
||||
# include "wx/os2/private.h"
|
||||
#endif
|
||||
|
||||
// include the most common wx headers
|
||||
#include "wx/wx.h"
|
||||
|
||||
|
Reference in New Issue
Block a user