11c8a587120fd33854974457cf2a795ead98183a9msarett// Copyright (c) 2011 The Chromium Authors. All rights reserved. 21c8a587120fd33854974457cf2a795ead98183a9msarett// Use of this source code is governed by a BSD-style license that can be 31c8a587120fd33854974457cf2a795ead98183a9msarett// found in the LICENSE file. 41c8a587120fd33854974457cf2a795ead98183a9msarett 51c8a587120fd33854974457cf2a795ead98183a9msarett// YASM is written in C99 and requires <stdint.h> and <inttypes.h>. 61c8a587120fd33854974457cf2a795ead98183a9msarett 71c8a587120fd33854974457cf2a795ead98183a9msarett#ifndef THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_ 81c8a587120fd33854974457cf2a795ead98183a9msarett#define THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_ 91c8a587120fd33854974457cf2a795ead98183a9msarett 101c8a587120fd33854974457cf2a795ead98183a9msarett#if !defined(_MSC_VER) 111c8a587120fd33854974457cf2a795ead98183a9msarett#error This file should only be included when compiling with MSVC. 121c8a587120fd33854974457cf2a795ead98183a9msarett#endif 131c8a587120fd33854974457cf2a795ead98183a9msarett 141c8a587120fd33854974457cf2a795ead98183a9msarett// Define C99 equivalent types. 151c8a587120fd33854974457cf2a795ead98183a9msaretttypedef signed char int8_t; 161c8a587120fd33854974457cf2a795ead98183a9msaretttypedef signed short int16_t; 171c8a587120fd33854974457cf2a795ead98183a9msaretttypedef signed int int32_t; 181c8a587120fd33854974457cf2a795ead98183a9msaretttypedef signed long long int64_t; 191c8a587120fd33854974457cf2a795ead98183a9msaretttypedef unsigned char uint8_t; 201c8a587120fd33854974457cf2a795ead98183a9msaretttypedef unsigned short uint16_t; 211c8a587120fd33854974457cf2a795ead98183a9msaretttypedef unsigned int uint32_t; 221c8a587120fd33854974457cf2a795ead98183a9msaretttypedef unsigned long long uint64_t; 231c8a587120fd33854974457cf2a795ead98183a9msarett 241c8a587120fd33854974457cf2a795ead98183a9msarett// Define the C99 INT64_C macro that is used for declaring 64-bit literals. 251c8a587120fd33854974457cf2a795ead98183a9msarett// Technically, these should only be definied when __STDC_CONSTANT_MACROS 261c8a587120fd33854974457cf2a795ead98183a9msarett// is defined. 271c8a587120fd33854974457cf2a795ead98183a9msarett#define INT64_C(value) value##LL 281c8a587120fd33854974457cf2a795ead98183a9msarett#define UINT64_C(value) value##ULL 291c8a587120fd33854974457cf2a795ead98183a9msarett 301c8a587120fd33854974457cf2a795ead98183a9msarett#endif // THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_ 31