2012-01-25 00:16:07 +00:00
|
|
|
// Copyright 2012 the V8 project authors. All rights reserved.
|
2014-04-29 06:42:26 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
2010-11-04 08:52:49 +00:00
|
|
|
|
|
|
|
// Load definitions of standard types.
|
|
|
|
|
|
|
|
#ifndef V8STDINT_H_
|
|
|
|
#define V8STDINT_H_
|
|
|
|
|
2012-01-25 00:16:07 +00:00
|
|
|
#include <stddef.h>
|
2010-11-04 08:52:49 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2013-08-23 07:32:25 +00:00
|
|
|
#include "v8config.h"
|
|
|
|
|
|
|
|
#if V8_OS_WIN && !V8_CC_MINGW
|
2010-11-04 08:52:49 +00:00
|
|
|
|
|
|
|
typedef signed char int8_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef short int16_t; // NOLINT
|
|
|
|
typedef unsigned short uint16_t; // NOLINT
|
|
|
|
typedef int int32_t;
|
|
|
|
typedef unsigned int uint32_t;
|
|
|
|
typedef __int64 int64_t;
|
|
|
|
typedef unsigned __int64 uint64_t;
|
|
|
|
// intptr_t and friends are defined in crtdefs.h through stdio.h.
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2013-08-23 07:32:25 +00:00
|
|
|
#include <stdint.h> // NOLINT
|
2010-11-04 08:52:49 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // V8STDINT_H_
|