| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 #ifndef PPAPI_C_PP_STDINT_H_ | 5 #ifndef PPAPI_C_PP_STDINT_H_ |
| 6 #define PPAPI_C_PP_STDINT_H_ | 6 #define PPAPI_C_PP_STDINT_H_ |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * @file | 9 * @file |
| 10 * Provides a definition of C99 sized types | 10 * Provides a definition of C99 sized types |
| 11 * across different compilers. | 11 * across different compilers. |
| 12 * | |
| 13 * @addtogroup PP | |
| 14 * @{ | |
| 15 */ | 12 */ |
| 16 #if defined(_MSC_VER) | 13 #if defined(_MSC_VER) |
| 17 | 14 |
| 18 typedef unsigned char uint8_t; | 15 typedef unsigned char uint8_t; |
| 19 typedef signed char int8_t; | 16 typedef signed char int8_t; |
| 20 typedef unsigned short uint16_t; | 17 typedef unsigned short uint16_t; |
| 21 typedef short int16_t; | 18 typedef short int16_t; |
| 22 typedef unsigned int uint32_t; | 19 typedef unsigned int uint32_t; |
| 23 typedef int int32_t; | 20 typedef int int32_t; |
| 24 typedef __int64 int64_t; | 21 typedef __int64 int64_t; |
| 25 typedef unsigned __int64 uint64_t; | 22 typedef unsigned __int64 uint64_t; |
| 26 | 23 |
| 27 #else | 24 #else |
| 28 #include <stdint.h> | 25 #include <stdint.h> |
| 29 #endif | 26 #endif |
| 30 | 27 |
| 31 #include <stddef.h> /* Needed for size_t. */ | 28 #include <stddef.h> /* Needed for size_t. */ |
| 32 | 29 |
| 33 /** | |
| 34 * @} | |
| 35 * End addtogroup PP | |
| 36 */ | |
| 37 #endif /* PPAPI_C_PP_STDINT_H_ */ | 30 #endif /* PPAPI_C_PP_STDINT_H_ */ |
| 38 | 31 |
| OLD | NEW |