Modified libdrm to support SuperH platform

Added USTL_ANDROID_SH defination while build on SuperH platform
This commit is contained in:
Shin-ichiro KAWASAKI
2009-07-03 16:37:46 +09:00
committed by Tony Sim
parent 7ecccee0d0
commit 56cfd6681a
2 changed files with 5 additions and 1 deletions

View File

@@ -74,6 +74,10 @@ LOCAL_MODULE := libdrm2
ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86)
LOCAL_CFLAGS += -DUSTL_ANDROID_X86
else
ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-sh)
LOCAL_CFLAGS += -DUSTL_ANDROID_SH
endif
endif
include $(BUILD_STATIC_LIBRARY)

View File

@@ -370,7 +370,7 @@ namespace simd {
/// implicit casts to pointer from an integral type. Ironically, such an
/// implicit cast is already detected by gcc.
///
#if defined(USTL_ANDROID_X86)
#if defined(USTL_ANDROID_X86) || defined(USTL_ANDROID_SH)
#define OVERLOAD_POINTER_AND_SIZE_T_V2(name, arg1type)
#else
#define OVERLOAD_POINTER_AND_SIZE_T_V2(name, arg1type) \