Commit 50d7bf4a authored by fbarchard@google.com's avatar fbarchard@google.com

if types are already defined, dont define them again.

BUG=180
TEST=none
Review URL: https://webrtc-codereview.appspot.com/1098004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@558 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 762c050b
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 557 Version: 558
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <stdint.h> // for uintptr_t #include <stdint.h> // for uintptr_t
#endif #endif
#ifndef GG_LONGLONG
#ifndef INT_TYPES_DEFINED #ifndef INT_TYPES_DEFINED
#define INT_TYPES_DEFINED #define INT_TYPES_DEFINED
#ifdef COMPILER_MSVC #ifdef COMPILER_MSVC
...@@ -61,6 +62,7 @@ typedef short int16; // NOLINT ...@@ -61,6 +62,7 @@ typedef short int16; // NOLINT
typedef unsigned char uint8; typedef unsigned char uint8;
typedef signed char int8; typedef signed char int8;
#endif // INT_TYPES_DEFINED #endif // INT_TYPES_DEFINED
#endif // GG_LONGLONG
// Detect compiler is for x86 or x64. // Detect compiler is for x86 or x64.
#if defined(__x86_64__) || defined(_M_X64) || \ #if defined(__x86_64__) || defined(_M_X64) || \
......
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 557 #define LIBYUV_VERSION 558
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
...@@ -16,9 +16,9 @@ namespace libyuv { ...@@ -16,9 +16,9 @@ namespace libyuv {
TEST_F(libyuvTest, Endian) { TEST_F(libyuvTest, Endian) {
uint16 v16 = 0x1234u; uint16 v16 = 0x1234u;
uint8 first_byte = *reinterpret_cast<uint8*>(&v16); uint8 first_byte = *reinterpret_cast<uint8*>(&v16);
#if defined(ARCH_CPU_LITTLE_ENDIAN) #if defined(LIBYUV_LITTLE_ENDIAN)
EXPECT_EQ(0x34u, first_byte); EXPECT_EQ(0x34u, first_byte);
#elif defined(ARCH_CPU_BIG_ENDIAN) #else
EXPECT_EQ(0x12u, first_byte); EXPECT_EQ(0x12u, first_byte);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment