williamr@2: #ifndef __glplatform_h_ williamr@2: #define __glplatform_h_ williamr@2: williamr@2: /** williamr@4: portions Copyright (c) 2008 - 2009 Nokia Corporation. All rights reserved. williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifdef __cplusplus williamr@2: extern "C" { williamr@2: #endif williamr@2: williamr@2: /* williamr@2: ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) williamr@2: ** Copyright (C) 2008 Silicon Graphics, Inc. All Rights Reserved. williamr@2: ** williamr@2: ** Permission is hereby granted, free of charge, to any person obtaining williamr@2: ** a copy of this software and associated documentation files williamr@2: ** (the "Software"), to deal in the Software without restriction, williamr@2: ** including without limitation the rights to use, copy, modify, merge, williamr@2: ** publish, distribute, sublicense, and/or sell copies of the Software, williamr@2: ** and to permit persons to whom the Software is furnished to do so, williamr@2: ** subject to the following conditions: williamr@2: ** williamr@2: ** The above copyright notice including the dates of first williamr@2: ** publication and either this permission notice or a reference to williamr@2: ** http://oss.sgi.com/projects/FreeB/ shall be included in all copies williamr@2: ** or substantial portions of the Software. williamr@2: ** williamr@2: ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, williamr@2: ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF williamr@2: ** MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. williamr@2: ** IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, williamr@2: ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR williamr@2: ** OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR williamr@2: ** THE USE OR OTHER DEALINGS IN THE SOFTWARE. williamr@2: ** williamr@2: ** Except as contained in this notice, the name of Silicon Graphics, Inc. williamr@2: ** shall not be used in advertising or otherwise to promote the sale, use williamr@2: ** or other dealings in this Software without prior written authorization williamr@2: ** from Silicon Graphics, Inc. williamr@2: */ williamr@2: williamr@2: /* williamr@2: * If the pre-included toolchain header does not specify the __SOFTFP macro, williamr@2: * this include defines it. williamr@2: */ williamr@2: #include williamr@2: williamr@2: /*------------------------------------------------------------------------- williamr@2: * Definition of GL_API and GL_APIENTRY williamr@2: *-----------------------------------------------------------------------*/ williamr@2: williamr@2: #if defined(AEE_SIMULATOR) williamr@2: #define __GL_EXPORTS williamr@2: #endif williamr@2: williamr@2: #if defined(_WIN32) && !defined(__WINS__) williamr@2: # ifdef __GL_EXPORTS williamr@2: # define GL_API __declspec(dllexport) williamr@2: # else williamr@2: # define GL_API __declspec(dllimport) williamr@2: # endif williamr@2: #else williamr@4: # if (__ARMCC_VERSION >= 220000) williamr@2: # ifdef __GL_EXPORTS williamr@2: # define GL_API __declspec(dllexport) williamr@2: # else williamr@2: # define GL_API __declspec(dllimport) williamr@2: # endif williamr@2: # else williamr@2: # ifdef __GL_EXPORTS williamr@2: # define GL_API williamr@2: # else williamr@2: # define GL_API extern williamr@2: # endif williamr@2: # endif williamr@2: #endif williamr@2: williamr@2: #define GL_APIENTRY williamr@2: williamr@2: #ifndef APIENTRY williamr@2: # define APIENTRY GL_APIENTRY williamr@2: #endif williamr@2: williamr@2: #ifndef GLAPI williamr@2: # define GLAPI GL_API williamr@2: #endif williamr@2: williamr@2: #ifdef __cplusplus williamr@2: } williamr@2: #endif williamr@2: williamr@2: #endif /* __glplatform_h_ */