1/* Copyright 2013 Google Inc. All Rights Reserved.
2
3   Licensed under the Apache License, Version 2.0 (the "License");
4   you may not use this file except in compliance with the License.
5   You may obtain a copy of the License at
6
7   http://www.apache.org/licenses/LICENSE-2.0
8
9   Unless required by applicable law or agreed to in writing, software
10   distributed under the License is distributed on an "AS IS" BASIS,
11   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   See the License for the specific language governing permissions and
13   limitations under the License.
14
15   Common types
16*/
17
18#ifndef BROTLI_DEC_TYPES_H_
19#define BROTLI_DEC_TYPES_H_
20
21#include <stddef.h>  /* for size_t */
22
23#ifndef _MSC_VER
24#include <inttypes.h>
25#ifdef __STRICT_ANSI__
26#define BROTLI_INLINE
27#else  /* __STRICT_ANSI__ */
28#define BROTLI_INLINE inline
29#endif
30#else
31typedef signed   char int8_t;
32typedef unsigned char uint8_t;
33typedef signed   short int16_t;
34typedef unsigned short uint16_t;
35typedef signed   int int32_t;
36typedef unsigned int uint32_t;
37typedef unsigned long long int uint64_t;
38typedef long long int int64_t;
39#define BROTLI_INLINE __forceinline
40#endif  /* _MSC_VER */
41
42#endif  /* BROTLI_DEC_TYPES_H_ */
43