summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/libyuv/include/libyuv/basic_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/libyuv/include/libyuv/basic_types.h')
-rw-r--r--chromium/third_party/libyuv/include/libyuv/basic_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/third_party/libyuv/include/libyuv/basic_types.h b/chromium/third_party/libyuv/include/libyuv/basic_types.h
index 51b15f8763d..beb750ba65c 100644
--- a/chromium/third_party/libyuv/include/libyuv/basic_types.h
+++ b/chromium/third_party/libyuv/include/libyuv/basic_types.h
@@ -75,9 +75,14 @@ typedef signed char int8;
#endif
#ifndef ALIGNP
+#ifdef __cplusplus
#define ALIGNP(p, t) \
(reinterpret_cast<uint8*>(((reinterpret_cast<uintptr_t>(p) + \
((t) - 1)) & ~((t) - 1))))
+#else
+#define ALIGNP(p, t) \
+ ((uint8*)((((uintptr_t)(p) + ((t) - 1)) & ~((t) - 1)))) /* NOLINT */
+#endif
#endif
#if !defined(LIBYUV_API)
@@ -98,6 +103,10 @@ typedef signed char int8;
#endif // __GNUC__
#endif // LIBYUV_API
+#define LIBYUV_BOOL int
+#define LIBYUV_FALSE 0
+#define LIBYUV_TRUE 1
+
// Visual C x86 or GCC little endian.
#if defined(__x86_64__) || defined(_M_X64) || \
defined(__i386__) || defined(_M_IX86) || \