VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/xf86Version.h@ 97956

最後變更 在這個檔案從97956是 69098,由 vboxsync 提交於 7 年 前

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.

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.1 KB
 
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 $ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette