do VMS-specific X symbols redefinitions only once in wx/platform.h instead of doing it in individual files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-01 20:38:33 +00:00
parent c0e28504ec
commit 43de9abf95
28 changed files with 15 additions and 114 deletions

View File

@@ -590,6 +590,15 @@
# warning "Compiling wxMac with probably wrong endianness" # warning "Compiling wxMac with probably wrong endianness"
#endif #endif
#ifdef __VMS
#define XtDisplay XTDISPLAY
#ifdef __WXMOTIF__
#define XtParent XTPARENT
#define XtScreen XTSCREEN
#define XtWindow XTWINDOW
#endif
#endif
/* Choose which method we will use for updating menus /* Choose which method we will use for updating menus
* - in OnIdle, or when we receive a wxEVT_MENU_OPEN event. * - in OnIdle, or when we receive a wxEVT_MENU_OPEN event.
* Presently, only Windows and GTK+ support wxEVT_MENU_OPEN. * Presently, only Windows and GTK+ support wxEVT_MENU_OPEN.

View File

@@ -18,12 +18,6 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __EMX__
// The following define is needed by Innotek's libc to
// make the definition of struct localeconv available.
#define __INTERNAL_DEFS
#endif
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
@@ -31,6 +25,12 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifdef __EMX__
// The following define is needed by Innotek's libc to
// make the definition of struct localeconv available.
#define __INTERNAL_DEFS
#endif
#if wxUSE_INTL #if wxUSE_INTL
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -18,10 +18,6 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"

View File

@@ -12,11 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtParent XTPARENT
#define XtDisplay XTDISPLAY
#endif
#include "wx/app.h" #include "wx/app.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -12,10 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtScreen XTSCREEN
#endif
#include "wx/bmpbuttn.h" #include "wx/bmpbuttn.h"
#ifdef __VMS__ #ifdef __VMS__

View File

@@ -12,11 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtParent XTPARENT
#define XtDisplay XTDISPLAY
#endif
#include "wx/motif/bmpmotif.h" #include "wx/motif/bmpmotif.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -12,10 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#include "wx/button.h" #include "wx/button.h"
#ifdef __VMS__ #ifdef __VMS__

View File

@@ -12,10 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#include "wx/checkbox.h" #include "wx/checkbox.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -14,11 +14,6 @@
#if wxUSE_CHOICE #if wxUSE_CHOICE
#ifdef __VMS
#define XtDisplay XTDISPLAY
#define XtParent XTPARENT
#endif
#include "wx/choice.h" #include "wx/choice.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -12,13 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#define XtWindow XTWINDOW
#define XtParent XTPARENT
#define XtScreen XTSCREEN
#endif
#include "wx/dialog.h" #include "wx/dialog.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -17,11 +17,6 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#ifdef __VMS
#define XtParent XTPARENT
#define XtDisplay XTDISPLAY
#endif
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"

View File

@@ -12,12 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#define XtParent XTPARENT
#define XtWindow XTWINDOW
#endif
#include "wx/filedlg.h" #include "wx/filedlg.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -20,12 +20,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#define XtWindow XTWINDOW
#define XtScreen XTSCREEN
#endif
#include "wx/frame.h" #include "wx/frame.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -24,11 +24,6 @@
#include "wx/arrstr.h" #include "wx/arrstr.h"
#endif #endif
#ifdef __VMS
#define XtParent XTPARENT
#define XtDisplay XTDISPLAY
#endif
#ifdef __VMS__ #ifdef __VMS__
#pragma message disable nosimpint #pragma message disable nosimpint
#endif #endif

View File

@@ -12,11 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#define XtWindow XTWINDOW
#endif
#include "wx/mdi.h" #include "wx/mdi.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -33,8 +33,6 @@
#ifdef __VMS__ #ifdef __VMS__
#pragma message disable nosimpint #pragma message disable nosimpint
#define XtDisplay XTDISPLAY
#define XtWindow XTWINDOW
#endif #endif
#include <Xm/Label.h> #include <Xm/Label.h>
#include <Xm/LabelG.h> #include <Xm/LabelG.h>

View File

@@ -21,7 +21,6 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS #ifdef __VMS
#define XtDisplay XTDISPLAY
#pragma message disable nosimpint #pragma message disable nosimpint
#include "wx/vms_x_fix.h" #include "wx/vms_x_fix.h"
#endif #endif

View File

@@ -14,10 +14,6 @@
#if wxUSE_RADIOBOX #if wxUSE_RADIOBOX
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#include "wx/radiobox.h" #include "wx/radiobox.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -12,10 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#include "wx/radiobut.h" #include "wx/radiobut.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -16,7 +16,6 @@
#ifdef __VMS__ #ifdef __VMS__
#pragma message disable nosimpint #pragma message disable nosimpint
#define XtDisplay XTDISPLAY
#endif #endif
#include <Xm/Xm.h> #include <Xm/Xm.h>
#include <Xm/ScrollBar.h> #include <Xm/ScrollBar.h>

View File

@@ -12,10 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#include "wx/statbox.h" #include "wx/statbox.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -12,10 +12,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#if wxUSE_STATTEXT #if wxUSE_STATTEXT
#include "wx/stattext.h" #include "wx/stattext.h"

View File

@@ -20,10 +20,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtParent XTPARENT
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <ctype.h> #include <ctype.h>

View File

@@ -20,10 +20,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#include "wx/toolbar.h" #include "wx/toolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -27,10 +27,6 @@
#endif #endif
#ifdef __VMS__ #ifdef __VMS__
#define XtDisplay XTDISPLAY
#define XtParent XTPARENT
#define XtScreen XTSCREEN
#define XtWindow XTWINDOW
#pragma message disable nosimpint #pragma message disable nosimpint
#endif #endif

View File

@@ -20,10 +20,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
#include "wx/utils.h" #include "wx/utils.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP

View File

@@ -20,12 +20,6 @@
// For compilers that support precompilation, includes "wx.h". // For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#define XtWindow XTWINDOW
#define XtScreen XTSCREEN
#endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/hash.h" #include "wx/hash.h"
#include "wx/log.h" #include "wx/log.h"

View File

@@ -14,7 +14,6 @@
#ifdef __VMS #ifdef __VMS
#define XShapeQueryExtension XSHAPEQUERYEXTENSION #define XShapeQueryExtension XSHAPEQUERYEXTENSION
#define XtDisplay XTDISPLAY
#endif #endif
#include "wx/x11/privx.h" #include "wx/x11/privx.h"