fix build error sandbox/dkson95/gcc6
authorDongkyun, Son <dongkyun.s@samsung.com>
Fri, 28 Oct 2016 17:09:10 +0000 (02:09 +0900)
committerDongkyun, Son <dongkyun.s@samsung.com>
Fri, 28 Oct 2016 17:19:50 +0000 (02:19 +0900)
build fails because of undefined C++11 user-defined literals

Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
include/metadata_editor_private.h
packaging/capi-media-metadata-editor.spec

index f60994f7b4e84e9c0554aa634a57d8fdefc679a1..48d558bfac7474123088375e7a2e5026397e5d5e 100755 (executable)
@@ -61,15 +61,15 @@ extern "C" {
 
 
 #define metadata_editor_debug(fmt, arg...) do { \
-               LOGD(""fmt"", ##arg);     \
+               LOGD("" fmt "", ##arg);     \
        } while (0)
 
 #define metadata_editor_info(fmt, arg...) do { \
-               LOGI(""fmt"", ##arg);     \
+               LOGI("" fmt "", ##arg);     \
        } while (0)
 
 #define metadata_editor_error(fmt, arg...) do { \
-               LOGE(""fmt"", ##arg);     \
+               LOGE("" fmt "", ##arg);     \
        } while (0)
 
 #define metadata_editor_debug_fenter() do { \
@@ -82,7 +82,7 @@ extern "C" {
 
 #define metadata_editor_retvm_if(expr, val, fmt, arg...) do { \
                        if (expr) { \
-                               LOGE(""fmt"", ##arg);   \
+                               LOGE("" fmt "", ##arg); \
                                return (val); \
                        } \
                } while (0)
index 5dc6d23817e6fa5e400f420c6aa30771502a7509..fc1f5ee129b6962de25410171ab55a850be5ff20 100755 (executable)
@@ -31,6 +31,7 @@ A media metadata editor library in Tizen Native API. (Development files included
 export CFLAGS+=" -Wextra -Wno-array-bounds"
 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
 export CFLAGS+=" -Wwrite-strings -Wswitch-default"
+CXXFLAGS=${CXXFLAGS/-fgnu89-inline/}
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}