Skip to content

Commit 2c07e7b

Browse files
jhamAndroid Code Review
authored andcommitted
Merge "Modified libdrm to support SuperH platform"
2 parents 5b9fb5a + 56cfd66 commit 2c07e7b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

media/libdrm/mobile2/Android.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ LOCAL_MODULE := libdrm2
7474

7575
ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86)
7676
LOCAL_CFLAGS += -DUSTL_ANDROID_X86
77+
else
78+
ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-sh)
79+
LOCAL_CFLAGS += -DUSTL_ANDROID_SH
80+
endif
7781
endif
7882

7983
include $(BUILD_STATIC_LIBRARY)

media/libdrm/mobile2/src/util/ustl-1.0/uutility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ namespace simd {
370370
/// implicit casts to pointer from an integral type. Ironically, such an
371371
/// implicit cast is already detected by gcc.
372372
///
373-
#if defined(USTL_ANDROID_X86)
373+
#if defined(USTL_ANDROID_X86) || defined(USTL_ANDROID_SH)
374374
#define OVERLOAD_POINTER_AND_SIZE_T_V2(name, arg1type)
375375
#else
376376
#define OVERLOAD_POINTER_AND_SIZE_T_V2(name, arg1type) \

0 commit comments

Comments
 (0)