Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 0a44b69

Browse files
author
Sotaro Ikeda
committed
Bug 1284803 part 3 - Change basic_types.h for fixing build failure r=jesup
1 parent 84091e6 commit 0a44b69

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

media/libyuv/include/libyuv/basic_types.h

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,26 @@
1313

1414
#include <stddef.h> // for NULL, size_t
1515

16-
#if defined(__ANDROID__) || (defined(_MSC_VER) && (_MSC_VER < 1600))
17-
#include <sys/types.h> // for uintptr_t on x86
18-
#else
16+
#if !(defined(_MSC_VER) && (_MSC_VER < 1600))
1917
#include <stdint.h> // for uintptr_t
2018
#endif
2119

20+
typedef uint64_t uint64;
21+
typedef int64_t int64;
22+
#if defined(_MSC_VER)
23+
// nsprpub/pr/include/obsolete/protypes.h defines these weirdly
24+
typedef long int32;
25+
typedef unsigned long uint32;
26+
#else
27+
typedef uint32_t uint32;
28+
typedef int32_t int32;
29+
#endif
30+
typedef uint16_t uint16;
31+
typedef int16_t int16;
32+
typedef uint8_t uint8;
33+
typedef int8_t int8;
34+
#define INT_TYPES_DEFINED 1
35+
2236
#ifndef GG_LONGLONG
2337
#ifndef INT_TYPES_DEFINED
2438
#define INT_TYPES_DEFINED

0 commit comments

Comments
 (0)