First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / xf4bpp / OScompiler.h
blob8a8bbb59c15dbaa5dd220e889a0c6cc0fc825cbd
1 /*
2 * Copyright IBM Corporation 1987,1988,1989
4 * All Rights Reserved
6 * Permission to use, copy, modify, and distribute this software and its
7 * documentation for any purpose and without fee is hereby granted,
8 * provided that the above copyright notice appear in all copies and that
9 * both that copyright notice and this permission notice appear in
10 * supporting documentation, and that the name of IBM not be
11 * used in advertising or publicity pertaining to distribution of the
12 * software without specific, written prior permission.
14 * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20 * SOFTWARE.
24 #ifdef HAVE_XORG_CONFIG_H
25 #include <xorg-config.h>
26 #endif
28 #ifndef __COMPILER_DEPENDANCIES__
29 #define __COMPILER_DEPENDANCIES__
31 #define MOVE( src, dst, length ) memcpy( dst, src, length)
32 #define MAX(a,b) (((a)>(b))?(a):(b))
33 #define MIN(a,b) (((a)<(b))?(a):(b))
34 #define ABS(x) (((x)>0)?(x):-(x))
36 #include "misc.h"
37 #include "compiler.h"
39 #ifdef lint
40 /* So that lint doesn't complain about constructs it doesn't understand */
41 #ifdef volatile
42 #undef volatile
43 #endif
44 #define volatile
45 #ifdef const
46 #undef const
47 #endif
48 #define const
49 #ifdef signed
50 #undef signed
51 #endif
52 #define signed
53 #ifdef _ANSI_DECLS_
54 #undef _ANSI_DECLS_
55 #endif
56 #endif
58 #endif /* !__COMPILER_DEPENDANCIES__ */