VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/glx_ansic.h

Last change on this file was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 4.1 KB
Line 
1#ifdef HAVE_DIX_CONFIG_H
2#include <dix-config.h>
3#endif
4
5#ifndef _glx_ansic_h_
6#define _glx_ansic_h_
7
8/* $XFree86: xc/programs/Xserver/GL/include/GL/glx_ansic.h,v 1.5 2001/03/21 20:49:08 dawes Exp $ */
9/*
10** License Applicability. Except to the extent portions of this file are
11** made subject to an alternative license as permitted in the SGI Free
12** Software License B, Version 1.1 (the "License"), the contents of this
13** file are subject only to the provisions of the License. You may not use
14** this file except in compliance with the License. You may obtain a copy
15** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
16** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
17**
18** http://oss.sgi.com/projects/FreeB
19**
20** Note that, as provided in the License, the Software is distributed on an
21** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
22** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
23** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
24** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
25**
26** Original Code. The Original Code is: OpenGL Sample Implementation,
27** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
28** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
29** Copyright in any portions created by third parties is as indicated
30** elsewhere herein. All Rights Reserved.
31**
32** Additional Notice Provisions: The application programming interfaces
33** established by SGI in conjunction with the Original Code are The
34** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
35** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
36** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
37** Window System(R) (Version 1.3), released October 19, 1998. This software
38** was created using the OpenGL(R) version 1.2.1 Sample Implementation
39** published by SGI, but has not been independently verified as being
40** compliant with the OpenGL(R) version 1.2.1 Specification.
41*/
42
43/*
44** this needs to check whether we're using XFree86 at all, and then
45** which version we're using. Use these macros if version is 3.9+, else
46** use normal commands below.
47*/
48
49/*
50** turns out this include file only exists for XFree86 3.9+
51** I notice that not having it is not an error and does not stop the build,
52** but having it will allow opengl and glx to be built for 3.9+. We no longer
53** need an explicit define in the Makefile, just point to the correct X source
54** tree and all should be taken care of.
55*/
56
57#ifdef XFree86Server
58
59#ifdef XFree86LOADER
60#include "xf86_ansic.h"
61#endif
62#ifndef assert
63#define assert(a)
64#endif
65
66#else
67
68#if defined(Lynx) && defined(__assert_h)
69#undef __assert_h
70#endif
71#ifdef assert
72#undef assert
73#endif
74#include <assert.h>
75
76#endif
77
78
79#define GLX_STDOUT stdout
80#define GLX_STDERR stderr
81#define __glXPrintf printf
82#define __glXFprintf fprintf
83#define __glXSprintf sprintf
84#define __glXVfprintf vfprintf
85#define __glXVsprintf vsprintf
86#define __glXFopen fopen
87#define __glXFclose fclose
88#define __glXCos(x) cos(x)
89#define __glXSin(x) sin(x)
90#define __glXAtan(x) atan(x)
91#define __glXAbs(x) abs(x)
92#define __glXLog(x) log(x)
93#define __glXCeil(x) ceil(x)
94#define __glXFloor(x) floor(x)
95#define __glXSqrt(x) sqrt(x)
96#define __glXPow(x, y) pow(x, y)
97#define __glXMemmove(dest, src, n) memmove(dest, src, n)
98#define __glXMemcpy(dest, src, n) memcpy(dest, src, n)
99#define __glXMemset(s, c, n) memset(s, c, n)
100#define __glXStrdup(str) xstrdup(str)
101#define __glXStrcpy(dest, src) strcpy(dest, src)
102#define __glXStrncpy(dest, src, n) strncpy(dest, src, n)
103#define __glXStrcat(dest, src) strcat(dest, src)
104#define __glXStrncat(dest, src, n) strncat(dest, src, n)
105#define __glXStrcmp(s1, s2) strcmp(s1, s2)
106#define __glXStrncmp(s1, s2, n) strncmp(s1, s2, n)
107#define __glXStrlen(str) strlen(str)
108#define __glXAbort() abort()
109#define __glXStrtok(s, delim) strtok(s, delim)
110#define __glXStrcspn(s, reject) strcspn(s, reject)
111#define __glXGetenv(a) getenv(a)
112#define __glXAtoi(a) atoi(a)
113
114#endif /* _glx_ansic_h_ */
115
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette