Fix compilation error using clang(LLVM).
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 2 Aug 2013 09:40:09 +0000 (18:40 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 2 Aug 2013 09:40:09 +0000 (18:40 +0900)
Change-Id: I491df6b186cdedf72953a51a2ef610984b81efe6
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tcg/i386/tcg-target.c
tizen/src/hw/opengl_exec.c

index 9eec06c8a43333b9e9a88b2b81e681e8bd3de059..fdf911849ca0a1b7974d4f47338a07f207afcb3c 100644 (file)
@@ -104,6 +104,9 @@ static const int tcg_target_call_oarg_regs[] = {
 # define have_cmov 1
 #elif defined(CONFIG_CPUID_H)
 #include <cpuid.h>
+#ifndef bit_CMOV
+#define bit_CMOV    (1 << 15)
+#endif
 static bool have_cmov;
 #else
 # define have_cmov 0
index e91d540efa5d603cb81c932a3d9a7f6aec8cc3ec..b764de6b92b665531804b56e6c2044d1ad395baa 100644 (file)
@@ -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) {