texture palette update
[mesa.git] / src / mesa / main / glheader.h
1 /* $Id: glheader.h,v 1.3 1999/11/12 18:23:47 brianp Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 3.3
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28 #ifndef GLHEADER_H
29 #define GLHEADER_H
30
31
32 /*
33 * This is the top-most include file of the Mesa sources.
34 * It includes gl.h and all system headers which are needed.
35 * Other Mesa source files should _not_ directly include any system
36 * headers. This allows Mesa to be integrated into XFree86 and
37 * allows system-dependent hacks/work-arounds to be collected in one place.
38 *
39 * If you touch this file, everything gets recompiled!
40 *
41 * This file should be included before any other header in the .c files.
42 */
43
44
45 #ifdef XFree86LOADER
46 #include "xf86_ansic.h"
47 #else
48 #include <assert.h>
49 #include <ctype.h>
50 #include <float.h>
51 #include <math.h>
52 #include <limits.h>
53 #include <stdlib.h>
54 #include <stdio.h>
55 #include <string.h>
56 #endif
57
58 #ifdef HAVE_CONFIG_H
59 #include "conf.h"
60 #endif
61
62 #include <GL/gl.h>
63
64
65 /*
66 * Put compiler/OS/assembly pragmas and macros here to avoid
67 * cluttering other source files.
68 */
69
70
71 /* Disable unreachable code warnings for Watcom C++ */
72 #ifdef __WATCOMC__
73 #pragma disable_message(201)
74 #endif
75
76
77 /* Turn off macro checking systems used by other libraries */
78 #ifdef CHECK
79 #undef CHECK
80 #endif
81
82
83 /* Create a macro so that asm functions can be linked into compilers other
84 * than GNU C
85 */
86 #ifndef _ASMAPI
87 #if !defined( __GNUC__ ) && !defined( VMS )
88 #define _ASMAPI __cdecl
89 #else
90 #define _ASMAPI
91 #endif
92 #ifdef PTR_DECL_IN_FRONT
93 #define _ASMAPIP * _ASMAPI
94 #else
95 #define _ASMAPIP _ASMAPI *
96 #endif
97 #endif
98
99 #ifdef USE_X86_ASM
100 #define _NORMAPI _ASMAPI
101 #define _NORMAPIP _ASMAPIP
102 #else
103 #define _NORMAPI
104 #define _NORMAPIP *
105 #endif
106
107
108
109 #endif /* GLHEADER_H */