summaryrefslogtreecommitdiff
path: root/xf86dga.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-09-16 17:03:30 -0700
committerCarl Worth <cworth@cworth.org>2009-09-18 10:05:00 -0700
commitdb4cb300dec74c9198a4f04aafd20042fe2d1fd9 (patch)
tree6a36ef4b6fa16e8cc130998ad028009893db3468 /xf86dga.h
parent047a1ebbbcea3ad78a06f0fa8450fa8ba38be43d (diff)
Change xf86dga.h to only conditionally include server's header file.
The recent re-addition of the xf86dga.h file introduced an incompatibility with a recent, but unreleased version of libXxf86dga which also wanted to install a file of the same name. Instead, we allow the proto package to own this file, and include the library's version (now to be named Xxf86dga.h) unless we're building an old server (indicated by _XF86DGA_SERVER_).
Diffstat (limited to 'xf86dga.h')
-rw-r--r--xf86dga.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/xf86dga.h b/xf86dga.h
index 6d39268..7b5d635 100644
--- a/xf86dga.h
+++ b/xf86dga.h
@@ -1,3 +1,13 @@
+#ifdef _XF86DGA_SERVER_
+
#warning "xf86dga.h is obsolete and may be removed in the future."
#warning "include <X11/extensions/xf86dgaconst.h> instead."
#include <X11/extensions/xf86dgaconst.h>
+
+#else
+
+#warning "xf86dga.h is obsolete and may be removed in the future."
+#warning "include <X11/extensions/Xxf86dga.h> instead."
+#include <X11/extensions/Xxf86dga.h>
+
+#endif