177ed6142daed1e068fbda64405d0de9845e40e1Shih-wei Liao// Copyright 2010 Google Inc.
277ed6142daed1e068fbda64405d0de9845e40e1Shih-wei Liao//
377ed6142daed1e068fbda64405d0de9845e40e1Shih-wei Liao// This code is licensed under the same terms as WebM:
477ed6142daed1e068fbda64405d0de9845e40e1Shih-wei Liao//  Software License Agreement:  http://www.webmproject.org/license/software/
5//  Additional IP Rights Grant:  http://www.webmproject.org/license/additional/
6// -----------------------------------------------------------------------------
7//
8//  Common types
9//
10// Author: Skal (pascal.massimino@gmail.com)
11
12#ifndef WEBP_WEBP_TYPES_H_
13#define WEBP_WEBP_TYPES_H_
14
15#ifndef _MSC_VER
16#include <inttypes.h>
17#ifdef ANSI
18#define inline
19#endif  /* ANSI */
20#else
21typedef signed   char int8_t;
22typedef unsigned char uint8_t;
23typedef signed   short int16_t;
24typedef unsigned short uint16_t;
25typedef signed   int int32_t;
26typedef unsigned int uint32_t;
27typedef unsigned long long int uint64_t;
28typedef long long int int64_t;
29#define inline __forceinline
30#endif  /* _MSC_VER */
31
32#ifndef WEBP_EXTERN
33// This explicitly marks library functions and allows for changing the
34// signature for e.g., Windows DLL builds.
35#define WEBP_EXTERN(type) extern type
36#endif  /* WEBP_EXTERN */
37
38#endif  /* WEBP_WEBP_TYPES_H_ */
39