pp_stdint.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
1b025734047dd8b630c34cea53b371361adb2a65aEric Christopher/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2b025734047dd8b630c34cea53b371361adb2a65aEric Christopher * Use of this source code is governed by a BSD-style license that can be
3b025734047dd8b630c34cea53b371361adb2a65aEric Christopher * found in the LICENSE file.
4b025734047dd8b630c34cea53b371361adb2a65aEric Christopher */
5b025734047dd8b630c34cea53b371361adb2a65aEric Christopher
6b025734047dd8b630c34cea53b371361adb2a65aEric Christopher/* From pp_stdint.idl modified Mon Jul 18 17:53:53 2011. */
7b025734047dd8b630c34cea53b371361adb2a65aEric Christopher
8b025734047dd8b630c34cea53b371361adb2a65aEric Christopher#ifndef PPAPI_C_PP_STDINT_H_
9b025734047dd8b630c34cea53b371361adb2a65aEric Christopher#define PPAPI_C_PP_STDINT_H_
10b025734047dd8b630c34cea53b371361adb2a65aEric Christopher
11b025734047dd8b630c34cea53b371361adb2a65aEric Christopher#include "ppapi/c/pp_macros.h"
12b025734047dd8b630c34cea53b371361adb2a65aEric Christopher
13b025734047dd8b630c34cea53b371361adb2a65aEric Christopher/**
14b025734047dd8b630c34cea53b371361adb2a65aEric Christopher * @file
15b025734047dd8b630c34cea53b371361adb2a65aEric Christopher * This file provides a definition of C99 sized types
16b025734047dd8b630c34cea53b371361adb2a65aEric Christopher * for Microsoft compilers. These definitions only apply
17b025734047dd8b630c34cea53b371361adb2a65aEric Christopher * for trusted modules.
18b025734047dd8b630c34cea53b371361adb2a65aEric Christopher */
19b025734047dd8b630c34cea53b371361adb2a65aEric Christopher
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