|
1 #ifndef __glplatform_h_ |
|
2 #define __glplatform_h_ |
|
3 |
|
4 /** |
|
5 portions Copyright (c) 2008 - 2009 Nokia Corporation. All rights reserved. |
|
6 @publishedAll |
|
7 @released |
|
8 */ |
|
9 |
|
10 #ifdef __cplusplus |
|
11 extern "C" { |
|
12 #endif |
|
13 |
|
14 /* |
|
15 ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) |
|
16 ** Copyright (C) 2008 Silicon Graphics, Inc. All Rights Reserved. |
|
17 ** |
|
18 ** Permission is hereby granted, free of charge, to any person obtaining |
|
19 ** a copy of this software and associated documentation files |
|
20 ** (the "Software"), to deal in the Software without restriction, |
|
21 ** including without limitation the rights to use, copy, modify, merge, |
|
22 ** publish, distribute, sublicense, and/or sell copies of the Software, |
|
23 ** and to permit persons to whom the Software is furnished to do so, |
|
24 ** subject to the following conditions: |
|
25 ** |
|
26 ** The above copyright notice including the dates of first |
|
27 ** publication and either this permission notice or a reference to |
|
28 ** http://oss.sgi.com/projects/FreeB/ shall be included in all copies |
|
29 ** or substantial portions of the Software. |
|
30 ** |
|
31 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
32 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
33 ** MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
34 ** IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, |
|
35 ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
|
36 ** OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR |
|
37 ** THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
38 ** |
|
39 ** Except as contained in this notice, the name of Silicon Graphics, Inc. |
|
40 ** shall not be used in advertising or otherwise to promote the sale, use |
|
41 ** or other dealings in this Software without prior written authorization |
|
42 ** from Silicon Graphics, Inc. |
|
43 */ |
|
44 |
|
45 /* |
|
46 * If the pre-included toolchain header does not specify the __SOFTFP macro, |
|
47 * this include defines it. |
|
48 */ |
|
49 #include <e32def.h> |
|
50 |
|
51 /*------------------------------------------------------------------------- |
|
52 * Definition of GL_API and GL_APIENTRY |
|
53 *-----------------------------------------------------------------------*/ |
|
54 |
|
55 #if defined(AEE_SIMULATOR) |
|
56 #define __GL_EXPORTS |
|
57 #endif |
|
58 |
|
59 #if defined(_WIN32) && !defined(__WINS__) |
|
60 # ifdef __GL_EXPORTS |
|
61 # define GL_API __declspec(dllexport) |
|
62 # else |
|
63 # define GL_API __declspec(dllimport) |
|
64 # endif |
|
65 #else |
|
66 # if (__ARMCC_VERSION >= 220000) |
|
67 # ifdef __GL_EXPORTS |
|
68 # define GL_API __declspec(dllexport) |
|
69 # else |
|
70 # define GL_API __declspec(dllimport) |
|
71 # endif |
|
72 # else |
|
73 # ifdef __GL_EXPORTS |
|
74 # define GL_API |
|
75 # else |
|
76 # define GL_API extern |
|
77 # endif |
|
78 # endif |
|
79 #endif |
|
80 |
|
81 #define GL_APIENTRY |
|
82 |
|
83 #ifndef APIENTRY |
|
84 # define APIENTRY GL_APIENTRY |
|
85 #endif |
|
86 |
|
87 #ifndef GLAPI |
|
88 # define GLAPI GL_API |
|
89 #endif |
|
90 |
|
91 #ifdef __cplusplus |
|
92 } |
|
93 #endif |
|
94 |
|
95 #endif /* __glplatform_h_ */ |