1 /* 2 * Copyright (c) 2007-2010 The Khronos Group Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining 5 * a copy of this software and/or associated documentation files (the 6 * "Materials "), to deal in the Materials without restriction, including 7 * without limitation the rights to use, copy, modify, merge, publish, 8 * distribute, sublicense, and/or sell copies of the Materials, and to 9 * permit persons to whom the Materials are furnished to do so, subject to 10 * the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included 13 * in all copies or substantial portions of the Materials. 14 * 15 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 22 * 23 * OpenMAXAL_Platform.h - OpenMAX AL version 1.0.1 24 * 25 */ 26 27 /****************************************************************************/ 28 /* NOTE: This file contains definitions for the base types and the */ 29 /* XAAPIENTRY macro. This file **WILL NEED TO BE EDITED** to provide */ 30 /* the correct definitions specific to the platform being used. */ 31 /****************************************************************************/ 32 33 #ifndef _OPENMAXAL_PLATFORM_H_ 34 #define _OPENMAXAL_PLATFORM_H_ 35 36 typedef unsigned char xa_uint8_t; 37 typedef signed char xa_int8_t; 38 typedef unsigned short xa_uint16_t; 39 typedef signed short xa_int16_t; 40 typedef unsigned int /*long*/ xa_uint32_t; 41 typedef signed int /*long*/ xa_int32_t; 42 typedef long long xa_int64_t; 43 typedef unsigned long long xa_uint64_t; 44 45 #ifndef XAAPIENTRY 46 #define XAAPIENTRY /* override per-platform */ 47 #endif 48 49 /** The XA_API is a platform-specific macro used 50 * to declare OPENMAX AL function prototypes. It is modified to meet the 51 * requirements for a particular platform 52 * 53 * Example: 54 * #ifdef __SYMBIAN32__ 55 * # define XA_API __declspec(dllimport) 56 * #endif 57 */ 58 59 #ifndef XA_API 60 #ifdef __GNUC__ 61 #define XA_API 62 #else 63 #define XA_API __declspec(dllimport) 64 #endif 65 #endif 66 67 #endif /* _OPENMAXAL_PLATFORM_H_ */ 68