| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project 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 // Load definitions of standard types. | 5 // Load definitions of standard types. |
| 6 | 6 |
| 7 #ifndef V8STDINT_H_ | 7 #ifndef V8STDINT_H_ |
| 8 #define V8STDINT_H_ | 8 #define V8STDINT_H_ |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 #include <stdint.h> |
| 11 #include <stdio.h> | 12 #include <stdio.h> |
| 12 | 13 |
| 13 #include "v8config.h" | 14 #include "v8config.h" |
| 14 | 15 |
| 15 #if V8_OS_WIN && !V8_CC_MINGW | |
| 16 | |
| 17 typedef signed char int8_t; | |
| 18 typedef unsigned char uint8_t; | |
| 19 typedef short int16_t; // NOLINT | |
| 20 typedef unsigned short uint16_t; // NOLINT | |
| 21 typedef int int32_t; | |
| 22 typedef unsigned int uint32_t; | |
| 23 typedef __int64 int64_t; | |
| 24 typedef unsigned __int64 uint64_t; | |
| 25 // intptr_t and friends are defined in crtdefs.h through stdio.h. | |
| 26 | |
| 27 #else | |
| 28 | |
| 29 #include <stdint.h> // NOLINT | |
| 30 | |
| 31 #endif | |
| 32 | |
| 33 #endif // V8STDINT_H_ | 16 #endif // V8STDINT_H_ |
| OLD | NEW |