1 /* $Id: glheader.h,v 1.7 2000/03/22 23:20:12 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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.
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.
39 * If you touch this file, everything gets recompiled!
41 * This file should be included before any other header in the .c files.
46 #include "xf86_ansic.h"
55 #if defined(__linux__) && defined(__i386__)
56 #include <fpu_control.h>
71 * Put compiler/OS/assembly pragmas and macros here to avoid
72 * cluttering other source files.
76 /* Disable unreachable code warnings for Watcom C++ */
78 #pragma disable_message(201)
82 /* Turn off macro checking systems used by other libraries */
88 /* Create a macro so that asm functions can be linked into compilers other
92 #if !defined( __GNUC__ ) && !defined( VMS )
93 #define _ASMAPI __cdecl
97 #ifdef PTR_DECL_IN_FRONT
98 #define _ASMAPIP * _ASMAPI
100 #define _ASMAPIP _ASMAPI *
105 #define _NORMAPI _ASMAPI
106 #define _NORMAPIP _ASMAPIP
114 #endif /* GLHEADER_H */