1/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6/* From pp_stdint.idl modified Mon Jul 18 17:53:53 2011. */
7
8#ifndef PPAPI_C_PP_STDINT_H_
9#define PPAPI_C_PP_STDINT_H_
10
11#include "ppapi/c/pp_macros.h"
12
13/**
14 * @file
15 * This file provides a definition of C99 sized types
16 * for Microsoft compilers. These definitions only apply
17 * for trusted modules.
18 */
19
20
21
22/**
23 *
24 * @addtogroup Typedefs
25 * @{
26 */
27#if defined(_MSC_VER)
28
29/** This value represents a guaranteed unsigned 8 bit integer. */
30typedef unsigned char uint8_t;
31
32/** This value represents a guaranteed signed 8 bit integer. */
33typedef signed char int8_t;
34
35/** This value represents a guaranteed unsigned 16 bit short. */
36typedef unsigned short uint16_t;
37
38/** This value represents a guaranteed signed 16 bit short. */
39typedef short int16_t;
40
41/** This value represents a guaranteed unsigned 32 bit integer. */
42typedef unsigned int uint32_t;
43
44/** This value represents a guaranteed signed 32 bit integer. */
45typedef int int32_t;
46
47/** This value represents a guaranteed signed 64 bit integer. */
48typedef __int64 int64_t;
49
50/** This value represents a guaranteed unsigned 64 bit integer. */
51typedef unsigned __int64 uint64_t;
52
53#else
54#include <stdint.h>
55#endif
56/**
57 * @}
58 */
59
60#endif  /* PPAPI_C_PP_STDINT_H_ */
61
62