diff options
author | Vinay Bondhugula <vinayb@vmware.com> | 2008-04-22 14:18:45 -0400 |
---|---|---|
committer | Vinay Bondhugula <vinayb@vmware.com> | 2008-04-22 14:18:45 -0400 |
commit | db027200474684c0aa4b9387f3ed53b2e5f24478 (patch) | |
tree | 4d5639a7df1f6633f247cde7a4e6f3f32ec768fd /src/vmwarevideo.c | |
parent | 6849c0a5fbf10722ca475d2ffcce7d0d95d2377a (diff) |
More xorg and xfree86 backwards compatibility
Push most of the xorg-server version checking into the configure script. With
this change, unmodified driver source compiles in the XFree86 4.3 tree.
Diffstat (limited to 'src/vmwarevideo.c')
-rw-r--r-- | src/vmwarevideo.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vmwarevideo.c b/src/vmwarevideo.c index d6ff4b7..a0a7781 100644 --- a/src/vmwarevideo.c +++ b/src/vmwarevideo.c @@ -45,10 +45,6 @@ #include "svga_overlay.h" #include <X11/extensions/Xv.h> -/* - * Need this to figure out which prototype to use for XvPutImage - */ -#include "xorgVersion.h" #define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE) @@ -170,7 +166,7 @@ typedef VMWAREVideoRec *VMWAREVideoPtr; /* * Callback functions */ -#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(7, 0, 0, 0, 0) || XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(2, 0, 0, 0, 0) +#ifdef HAVE_XORG_SERVER_1_0_99_901 static int vmwareXvPutImage(ScrnInfoPtr pScrn, short src_x, short src_y, short drw_x, short drw_y, short src_w, short src_h, short drw_w, short drw_h, int image, @@ -968,7 +964,7 @@ static void vmwareVideoEndStream(ScrnInfoPtr pScrn, VMWAREVideoPtr pVid) *----------------------------------------------------------------------------- */ -#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(7, 0, 0, 0, 0) || XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(4, 0, 0, 0, 0) +#ifdef HAVE_XORG_SERVER_1_0_99_901 static int vmwareXvPutImage(ScrnInfoPtr pScrn, short src_x, short src_y, short drw_x, short drw_y, short src_w, short src_h, short drw_w, short drw_h, int format, |