Last change
on this file since 76589 was 69098, checked in by vboxsync, 8 years ago |
Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/xf86Version.h,v 3.543 2003/02/27 04:56:45 dawes Exp $ */
|
---|
2 |
|
---|
3 | #ifndef XF86_VERSION_CURRENT
|
---|
4 |
|
---|
5 | #define XF86_VERSION_MAJOR 4
|
---|
6 | #define XF86_VERSION_MINOR 3
|
---|
7 | #define XF86_VERSION_PATCH 0
|
---|
8 | #define XF86_VERSION_SNAP 0
|
---|
9 |
|
---|
10 | /* This has five arguments for compatibilty reasons */
|
---|
11 | #define XF86_VERSION_NUMERIC(major,minor,patch,snap,dummy) \
|
---|
12 | (((major) * 10000000) + ((minor) * 100000) + ((patch) * 1000) + snap)
|
---|
13 |
|
---|
14 | #define XF86_GET_MAJOR_VERSION(vers) ((vers) / 10000000)
|
---|
15 | #define XF86_GET_MINOR_VERSION(vers) (((vers) % 10000000) / 100000)
|
---|
16 | #define XF86_GET_PATCH_VERSION(vers) (((vers) % 100000) / 1000)
|
---|
17 | #define XF86_GET_SNAP_VERSION(vers) ((vers) % 1000)
|
---|
18 |
|
---|
19 | /* Define these for compatibility. They'll be removed at some point. */
|
---|
20 | #define XF86_VERSION_SUBMINOR XF86_VERSION_PATCH
|
---|
21 | #define XF86_VERSION_BETA 0
|
---|
22 | #define XF86_VERSION_ALPHA XF86_VERSION_SNAP
|
---|
23 |
|
---|
24 | #define XF86_VERSION_CURRENT \
|
---|
25 | XF86_VERSION_NUMERIC(XF86_VERSION_MAJOR, \
|
---|
26 | XF86_VERSION_MINOR, \
|
---|
27 | XF86_VERSION_PATCH, \
|
---|
28 | XF86_VERSION_SNAP, \
|
---|
29 | 0)
|
---|
30 |
|
---|
31 | #endif
|
---|
32 |
|
---|
33 | /* $XConsortium: xf86Version.h /main/78 1996/10/28 05:42:10 kaleb $ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.