45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (C) 1994-1998 The XFree86 Project, Inc. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a copy
45e9809aff7304721fddb95654901b32195c9c7avboxsync * of this software and associated documentation files (the "Software"), to
45e9809aff7304721fddb95654901b32195c9c7avboxsync * deal in the Software without restriction, including without limitation the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
45e9809aff7304721fddb95654901b32195c9c7avboxsync * sell copies of the Software, and to permit persons to whom the Software is
45e9809aff7304721fddb95654901b32195c9c7avboxsync * furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45e9809aff7304721fddb95654901b32195c9c7avboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name of the XFree86 Project shall
45e9809aff7304721fddb95654901b32195c9c7avboxsync * not be used in advertising or otherwise to promote the sale, use or other
45e9809aff7304721fddb95654901b32195c9c7avboxsync * dealings in this Software without prior written authorization from the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * XFree86 Project.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _CFB16_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _CFB16_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * C's preprocessing language substitutes >text<, not values...
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef OLDPSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync# undef OLDPSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef PSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (PSZ == 8)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define OLDPSZ 8
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (PSZ == 16)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define OLDPSZ 16
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (PSZ == 24)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define OLDPSZ 24
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (PSZ == 32)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define OLDPSZ 32
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef OLDPSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Maybe an #error here ? */
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# undef PSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define PSZ 16
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define CFB_PROTOTYPES_ONLY
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "cfb.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef CFB_PROTOTYPES_ONLY
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "cfbunmap.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef PSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef OLDPSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (OLDPSZ == 8)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define PSZ 8
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (OLDPSZ == 16)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define PSZ 16
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (OLDPSZ == 24)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define PSZ 24
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if (OLDPSZ == 32)
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define PSZ 32
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# undef OLDPSZ
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _CFB16_H_ */