| OLD | NEW |
| (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_ |
| OLD | NEW |