2 Copyright (c) 2012, Broadcom Europe Ltd
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12 * Neither the name of the copyright holder nor the
13 names of its contributors may be used to endorse or promote products
14 derived from this software without specific prior written permission.
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 #ifndef VC_CONTAINERS_TYPES_H
28 #define VC_CONTAINERS_TYPES_H
30 /** \file containers_types.h
31 * Definition of types used by the containers API
39 #if defined( __STDC__ ) && defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
43 #elif defined( __GNUC__ )
47 #elif defined(_MSC_VER)
50 typedef __int8 int8_t;
51 typedef unsigned __int8 uint8_t;
52 typedef __int16 int16_t;
53 typedef unsigned __int16 uint16_t;
54 typedef __int32 int32_t;
55 typedef unsigned __int32 uint32_t;
56 typedef __int64 int64_t;
57 typedef unsigned __int64 uint64_t;
68 typedef signed char int8_t;
69 typedef unsigned char uint8_t;
70 typedef signed short int16_t;
71 typedef unsigned short uint16_t;
72 typedef signed long int32_t;
73 typedef unsigned long uint32_t;
74 typedef signed long long int64_t;
75 typedef unsigned long long uint64_t;
78 /* C99 64bits integers */
80 # define INT64_C(value) value##LL
81 # define UINT64_C(value) value##ULL
95 #endif /* __cplusplus */
97 /* FIXME: should be different for big endian */
98 #define VC_FOURCC(a,b,c,d) ((a) | (b << 8) | (c << 16) | (d << 24))
100 #endif /* VC_CONTAINERS_TYPES_H */