deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/*
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Copyright (c) 1994-2003 by The XFree86 Project, Inc.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * copy of this software and associated documentation files (the "Software"),
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * to deal in the Software without restriction, including without limitation
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * and/or sell copies of the Software, and to permit persons to whom the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Software is furnished to do so, subject to the following conditions:
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * The above copyright notice and this permission notice shall be included in
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * all copies or substantial portions of the Software.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * OTHER DEALINGS IN THE SOFTWARE.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync *
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Except as contained in this notice, the name of the copyright holder(s)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * and author(s) shall not be used in advertising or otherwise to promote
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * the sale, use or other dealings in this Software without prior written
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * authorization from the copyright holder(s) and author(s).
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#ifndef XF86_VERSION_CURRENT
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_MAJOR 4
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_MINOR 3
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_PATCH 99
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_SNAP 902
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/* This has five arguments for compatibilty reasons */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_NUMERIC(major,minor,patch,snap,dummy) \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync (((major) * 10000000) + ((minor) * 100000) + ((patch) * 1000) + snap)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_GET_MAJOR_VERSION(vers) ((vers) / 10000000)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_GET_MINOR_VERSION(vers) (((vers) % 10000000) / 100000)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_GET_PATCH_VERSION(vers) (((vers) % 100000) / 1000)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_GET_SNAP_VERSION(vers) ((vers) % 1000)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/* Define these for compatibility. They'll be removed at some point. */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_SUBMINOR XF86_VERSION_PATCH
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_BETA 0
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_ALPHA XF86_VERSION_SNAP
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define XF86_VERSION_CURRENT \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync XF86_VERSION_NUMERIC(XF86_VERSION_MAJOR, \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync XF86_VERSION_MINOR, \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync XF86_VERSION_PATCH, \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync XF86_VERSION_SNAP, \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync 0)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#endif
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/* $XConsortium: xf86Version.h /main/78 1996/10/28 05:42:10 kaleb $ */