From 875a85ed6f14d7dd865fa56d8641014309154c09 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Fri, 2 Aug 2013 18:40:09 +0900 Subject: [PATCH] Fix compilation error using clang(LLVM). Change-Id: I491df6b186cdedf72953a51a2ef610984b81efe6 Signed-off-by: SeokYeon Hwang --- tcg/i386/tcg-target.c | 3 +++ tizen/src/hw/opengl_exec.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 9eec06c8a4..fdf911849c 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -104,6 +104,9 @@ static const int tcg_target_call_oarg_regs[] = { # define have_cmov 1 #elif defined(CONFIG_CPUID_H) #include +#ifndef bit_CMOV +#define bit_CMOV (1 << 15) +#endif static bool have_cmov; #else # define have_cmov 0 diff --git a/tizen/src/hw/opengl_exec.c b/tizen/src/hw/opengl_exec.c index e91d540efa..b764de6b92 100644 --- a/tizen/src/hw/opengl_exec.c +++ b/tizen/src/hw/opengl_exec.c @@ -1276,7 +1276,7 @@ static const char *opengl_strtok(const char *s, int *n, char **saveptr, char *pr if (retlen == 0) { *p = 0; - return; + return NULL; } while (retlen > 0) { -- 2.34.1