Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1894)

Side by Side Diff: third_party/yasm/source/config/win/stdint.h

Issue 7109030: Build YASM on Windows using Visual Studio (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/yasm/source/config/win/libyasm-stdint.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // YASM is written in C99 and requires <stdint.h> and <inttypes.h>.
6
7 #ifndef THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_
8 #define THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_
9
10 #if !defined(_MSC_VER)
11 #error This file should only be included when compiling with MSVC.
12 #endif
13
14 // Define C99 equivalent types.
15 typedef signed char int8_t;
16 typedef signed short int16_t;
17 typedef signed int int32_t;
18 typedef signed long long int64_t;
scherkus (not reviewing) 2011/06/06 17:36:44 is this copied from http://src.chromium.org/viewvc
19 typedef unsigned char uint8_t;
20 typedef unsigned short uint16_t;
21 typedef unsigned int uint32_t;
22 typedef unsigned long long uint64_t;
23
24 // Define the C99 INT64_C macro that is used for declaring 64-bit literals.
25 // Technically, these should only be definied when __STDC_CONSTANT_MACROS
26 // is defined.
27 #define INT64_C(value) value##LL
28 #define UINT64_C(value) value##ULL
29
30 #endif // THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_
OLDNEW
« no previous file with comments | « third_party/yasm/source/config/win/libyasm-stdint.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698