// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "display.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
* Xlibint.h conflicts with a function declaration in wx/list.h. */
extern "C" {
#include <X11/Xlib.h>
+#ifndef __VMS
#include <X11/Xlibint.h>
- #include <X11/extensions/Xinerama.h>
+# include <X11/extensions/Xinerama.h>
#ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
#include <X11/extensions/xf86vmode.h>
#endif
+#endif
}
class wxDisplayUnixPriv
{
Display *disp = (Display*)wxGetDisplay();
- if ( XineramaIsActive(disp) )
+#ifndef __VMS
+ if ( XineramaIsActive(disp) )
{
XineramaScreenInfo *screenarr;
int numscreens;
return numscreens;
}
else
+#endif
{
return 1;
}
{
Display *disp = (Display*)wxGetDisplay();
- if ( XineramaIsActive(disp) )
+#ifndef __VMS
+ if ( XineramaIsActive(disp) )
{
int which_screen = -1;
XineramaScreenInfo *screenarr;
return which_screen;
}
else
- {
+#endif
+ {
wxSize size = wxGetDisplaySize();
if (p.x >= 0 &&
p.x < size.GetWidth() &&
{
Display *disp = (Display*)wxGetDisplay();
- if ( XineramaIsActive(disp) )
+#ifndef __VMS
+ if ( XineramaIsActive(disp) )
{
XineramaScreenInfo *screenarr;
int numscreens;
XFree(screenarr);
}
else
- {
+#endif
+ {
wxSize size = wxGetDisplaySize();
m_priv->m_rect = wxRect(0, 0, size.GetWidth(), size.GetHeight());
m_priv->m_depth = wxDisplayDepth();