blob: 62798c34fe29c70cb014b2e73e1bbcbc65d61b34 [file] [log] [blame]
Brian Paul0ebc94d2008-06-04 10:04:31 -06001#ifndef __gl2platform_h_
2#define __gl2platform_h_
3
4/* $Id: gl2platform.h 4532 2007-11-26 11:12:44Z markc $ */
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10/*
11** License Applicability. Except to the extent portions of this file are
12** made subject to an alternative license as permitted in the SGI Free
13** Software License B, Version 1.0 (the "License"), the contents of this
14** file are subject only to the provisions of the License. You may not use
15** this file except in compliance with the License. You may obtain a copy
16** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
17** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
18**
19** http://oss.sgi.com/projects/FreeB
20**
21** Note that, as provided in the License, the Software is distributed on an
22** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
23** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
24** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
25** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
26**
27** Original Code. The Original Code is: OpenGL Sample Implementation,
28** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
29** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
30** Copyright in any portions created by third parties is as indicated
31** elsewhere herein. All Rights Reserved.
32**
33** Additional Notice Provisions: The application programming interfaces
34** established by SGI in conjunction with the Original Code are The
35** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
36** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
37** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
38** Window System(R) (Version 1.3), released October 19, 1998. This software
39** was created using the OpenGL(R) version 1.2.1 Sample Implementation
40** published by SGI, but has not been independently verified as being
41** compliant with the OpenGL(R) version 1.2.1 Specification.
42*/
43
44/*-------------------------------------------------------------------------
45 * Definition of GL_APICALL and GL_APIENTRY
46 *-----------------------------------------------------------------------*/
47
48#if defined(_WIN32) || defined(__VC32__) /* Win32 */
49# if defined (_DLL_EXPORTS)
50# define GL_APICALL __declspec(dllexport)
51# else
52# define GL_APICALL __declspec(dllimport)
53# endif
54#elif defined (__ARMCC_VERSION) /* ADS */
55# define GL_APICALL
56#elif defined (__SYMBIAN32__) && defined (__GCC32__) /* Symbian GCC */
57# define GL_APICALL __declspec(dllexport)
58#elif defined (__GNUC__) /* GCC dependencies (kludge) */
59# define GL_APICALL
60#endif
61
62#if !defined (GL_APICALL)
63# error Unsupported platform!
64#endif
65
66#define GL_APIENTRY
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* __gl2platform_h_ */