VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/xf86Version.h@ 67129

最後變更 在這個檔案從67129是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.7 KB
 
1/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xf86Version.h,v 1.2 2004/04/23 19:20:02 eich Exp $ */
2/* $XFree86: xc/programs/Xserver/hw/xfree86/xf86Version.h,v 3.566 2003/12/19 04:52:11 dawes Exp $ */
3
4/*
5 * Copyright (c) 1994-2003 by The XFree86 Project, Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 * OTHER DEALINGS IN THE SOFTWARE.
24 *
25 * Except as contained in this notice, the name of the copyright holder(s)
26 * and author(s) shall not be used in advertising or otherwise to promote
27 * the sale, use or other dealings in this Software without prior written
28 * authorization from the copyright holder(s) and author(s).
29 */
30
31#ifndef XF86_VERSION_CURRENT
32
33#define XF86_VERSION_MAJOR 4
34#define XF86_VERSION_MINOR 3
35#define XF86_VERSION_PATCH 99
36#define XF86_VERSION_SNAP 902
37
38/* This has five arguments for compatibilty reasons */
39#define XF86_VERSION_NUMERIC(major,minor,patch,snap,dummy) \
40 (((major) * 10000000) + ((minor) * 100000) + ((patch) * 1000) + snap)
41
42#define XF86_GET_MAJOR_VERSION(vers) ((vers) / 10000000)
43#define XF86_GET_MINOR_VERSION(vers) (((vers) % 10000000) / 100000)
44#define XF86_GET_PATCH_VERSION(vers) (((vers) % 100000) / 1000)
45#define XF86_GET_SNAP_VERSION(vers) ((vers) % 1000)
46
47/* Define these for compatibility. They'll be removed at some point. */
48#define XF86_VERSION_SUBMINOR XF86_VERSION_PATCH
49#define XF86_VERSION_BETA 0
50#define XF86_VERSION_ALPHA XF86_VERSION_SNAP
51
52#define XF86_VERSION_CURRENT \
53 XF86_VERSION_NUMERIC(XF86_VERSION_MAJOR, \
54 XF86_VERSION_MINOR, \
55 XF86_VERSION_PATCH, \
56 XF86_VERSION_SNAP, \
57 0)
58
59#endif
60
61/* $XConsortium: xf86Version.h /main/78 1996/10/28 05:42:10 kaleb $ */
62/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xf86Version.h,v 1.2 2004/04/23 19:20:02 eich Exp $ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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