williamr@4: #ifndef __gl2platform_h_ williamr@4: #define __gl2platform_h_ williamr@4: williamr@4: /* williamr@4: * portions Copyright (c) 2008 - 2009 Nokia Corporation. All rights reserved. williamr@4: * Differences from the actual sample implementation provided by Khronos: williamr@4: * 1. This comment text. williamr@4: * 2. Doxygen comment with tag 'publishedPartner', and tag 'released' williamr@4: * 3. Modified GL_APICALL. The symbian specific check has been moved to the williamr@4: * top because with a clean epoc/build/* starting point, makmake.pl wincsw williamr@4: * would pick up the Win32 defines section. For vendor implementations, williamr@4: * use in your .MMP file williamr@4: * MACRO SYMBIAN_OGLES_DLL_EXPORTS. williamr@4: * The GCC32 case has been removed because this does not fit with the symbian williamr@4: * build system which uses GCCE instead. williamr@4: * 4. A vendor implementation is allowed to overwrite/modify this file; williamr@4: * see Khronos API Implementers' Guidelines, Revision 0.91.0. williamr@4: */ williamr@4: williamr@4: /** williamr@4: @publishedAll williamr@4: @released williamr@4: */ williamr@4: williamr@4: /* $Id: gl2platform.h 4532 2007-11-26 11:12:44Z markc $ */ williamr@4: williamr@4: #ifdef __cplusplus williamr@4: extern "C" { williamr@4: #endif williamr@4: williamr@4: /* williamr@4: ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) williamr@4: ** Copyright (C) 2008 Silicon Graphics, Inc. All Rights Reserved. williamr@4: ** williamr@4: ** Permission is hereby granted, free of charge, to any person obtaining williamr@4: ** a copy of this software and associated documentation files williamr@4: ** (the "Software"), to deal in the Software without restriction, williamr@4: ** including without limitation the rights to use, copy, modify, merge, williamr@4: ** publish, distribute, sublicense, and/or sell copies of the Software, williamr@4: ** and to permit persons to whom the Software is furnished to do so, williamr@4: ** subject to the following conditions: williamr@4: ** williamr@4: ** The above copyright notice including the dates of first williamr@4: ** publication and either this permission notice or a reference to williamr@4: ** http://oss.sgi.com/projects/FreeB/ shall be included in all copies williamr@4: ** or substantial portions of the Software. williamr@4: ** williamr@4: ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, williamr@4: ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF williamr@4: ** MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. williamr@4: ** IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, williamr@4: ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR williamr@4: ** OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR williamr@4: ** THE USE OR OTHER DEALINGS IN THE SOFTWARE. williamr@4: ** williamr@4: ** Except as contained in this notice, the name of Silicon Graphics, Inc. williamr@4: ** shall not be used in advertising or otherwise to promote the sale, use williamr@4: ** or other dealings in this Software without prior written authorization williamr@4: ** from Silicon Graphics, Inc. williamr@4: */ williamr@4: williamr@4: /* williamr@4: * If the pre-included toolchain header does not specify the __SOFTFP macro, williamr@4: * this include defines it. williamr@4: */ williamr@4: #include williamr@4: williamr@4: /*------------------------------------------------------------------------- williamr@4: * Definition of GL_APICALL and GL_APIENTRY williamr@4: *-----------------------------------------------------------------------*/ williamr@4: williamr@4: #if defined (__SYMBIAN32__) williamr@4: # if defined (SYMBIAN_OGLES_DLL_EXPORTS) williamr@4: # define GL_APICALL __declspec(dllexport) williamr@4: # else williamr@4: # define GL_APICALL __declspec(dllimport) williamr@4: # endif williamr@4: #elif defined(_WIN32) || defined(__VC32__) /* Win32 */ williamr@4: # if defined (_DLL_EXPORTS) williamr@4: # define GL_APICALL __declspec(dllexport) williamr@4: # else williamr@4: # define GL_APICALL __declspec(dllimport) williamr@4: # endif williamr@4: #elif defined (__ARMCC_VERSION) /* ADS */ williamr@4: # define GL_APICALL williamr@4: #elif defined (__GNUC__) /* GCC dependencies (kludge) */ williamr@4: # define GL_APICALL williamr@4: #endif williamr@4: williamr@4: #if !defined (GL_APICALL) williamr@4: # error Unsupported platform! williamr@4: #endif williamr@4: williamr@4: #define GL_APIENTRY williamr@4: williamr@4: #ifdef __cplusplus williamr@4: } williamr@4: #endif williamr@4: williamr@4: #endif /* __gl2platform_h_ */