[3582] | 1 | /* $Id: glheader.h,v 1.1 2000-05-21 20:57:14 jeroen Exp $ */
|
---|
| 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Mesa 3-D graphics library
|
---|
| 5 | * Version: 3.3
|
---|
| 6 | *
|
---|
| 7 | * Copyright (C) 1999-2000 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 | #ifndef __OS2_H__
|
---|
| 49 | #include <windows.h>
|
---|
| 50 | #endif
|
---|
| 51 | #include <assert.h>
|
---|
| 52 | #include <ctype.h>
|
---|
| 53 | #include <math.h>
|
---|
| 54 | #include <limits.h>
|
---|
| 55 | #include <stdlib.h>
|
---|
| 56 | #include <stdio.h>
|
---|
| 57 | #include <string.h>
|
---|
| 58 | #if defined(__linux__) && defined(__i386__)
|
---|
| 59 | #include <fpu_control.h>
|
---|
| 60 | #endif
|
---|
| 61 | #endif
|
---|
| 62 | #include <float.h>
|
---|
| 63 |
|
---|
| 64 | #ifdef HAVE_CONFIG_H
|
---|
| 65 | #include "conf.h"
|
---|
| 66 | #endif
|
---|
| 67 |
|
---|
| 68 | #include "gl.h"
|
---|
| 69 | #include "glext.h"
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | #ifdef __WIN32OS2__
|
---|
| 73 | #define PTR_DECL_IN_FRONT
|
---|
| 74 | #endif
|
---|
| 75 |
|
---|
| 76 | /*
|
---|
| 77 | * Put compiler/OS/assembly pragmas and macros here to avoid
|
---|
| 78 | * cluttering other source files.
|
---|
| 79 | */
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 | /* Disable unreachable code warnings for Watcom C++ */
|
---|
| 83 | #ifdef __WATCOMC__
|
---|
| 84 | #pragma disable_message(201)
|
---|
| 85 | #endif
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 | /* Turn off macro checking systems used by other libraries */
|
---|
| 89 | #ifdef CHECK
|
---|
| 90 | #undef CHECK
|
---|
| 91 | #endif
|
---|
| 92 |
|
---|
| 93 |
|
---|
| 94 | /* Create a macro so that asm functions can be linked into compilers other
|
---|
| 95 | * than GNU C
|
---|
| 96 | */
|
---|
| 97 | #ifndef _ASMAPI
|
---|
| 98 | #if !defined( __GNUC__ ) && !defined( VMS )
|
---|
| 99 | #define _ASMAPI __cdecl
|
---|
| 100 | #else
|
---|
| 101 | #define _ASMAPI
|
---|
| 102 | #endif
|
---|
| 103 | #ifdef PTR_DECL_IN_FRONT
|
---|
| 104 | #define _ASMAPIP * _ASMAPI
|
---|
| 105 | #else
|
---|
| 106 | #define _ASMAPIP _ASMAPI *
|
---|
| 107 | #endif
|
---|
| 108 | #endif
|
---|
| 109 |
|
---|
| 110 | #ifdef USE_X86_ASM
|
---|
| 111 | #define _NORMAPI _ASMAPI
|
---|
| 112 | #define _NORMAPIP _ASMAPIP
|
---|
| 113 | #else
|
---|
| 114 | #define _NORMAPI
|
---|
| 115 | #define _NORMAPIP *
|
---|
| 116 | #endif
|
---|
| 117 |
|
---|
| 118 |
|
---|
| 119 |
|
---|
| 120 | #endif /* GLHEADER_H */
|
---|