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

Side by Side Diff: chromium/include/win/stdint.h

Issue 9290059: Initial commit of all previous Chrome build scripts. (Closed) Base URL: http://git.chromium.org/chromium/third_party/ffmpeg.git@master
Patch Set: Drop deprecated subfolder. Created 8 years, 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2009 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 // FFmpeg is written in C99 and requires <stdint.h> and <inttypes.h>.
6 // Since MSVC doesn't include these headers, we have to write our own version
7 // to provide a compatibility layer between MSVC and the FFmpeg headers.
8
9 #ifndef THIRD_PARTY_FFMPEG_INCLUDE_WIN_STDINT_H_
10 #define THIRD_PARTY_FFMPEG_INCLUDE_WIN_STDINT_H_
11
12 #if !defined(_MSC_VER)
13 #error This file should only be included when compiling with MSVC.
14 #endif
15
16 // Define C99 equivalent types.
17 typedef signed char int8_t;
18 typedef signed short int16_t;
19 typedef signed int int32_t;
20 typedef signed long long int64_t;
21 typedef unsigned char uint8_t;
22 typedef unsigned short uint16_t;
23 typedef unsigned int uint32_t;
24 typedef unsigned long long uint64_t;
25
26 // Define the C99 INT64_C macro that is used for declaring 64-bit literals.
27 // Technically, these should only be definied when __STDC_CONSTANT_MACROS
28 // is defined.
29 #define INT64_C(value) value##LL
30 #define UINT64_C(value) value##ULL
31
32 #endif // THIRD_PARTY_FFMPEG_INCLUDE_WIN_STDINT_H_
OLDNEW
« no previous file with comments | « chromium/include/win/inttypes.h ('k') | chromium/patches/README » ('j') | codereview.settings » ('J')

Powered by Google App Engine
This is Rietveld 408576698