Fix build error with log option 62/262562/1
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Aug 2021 08:06:11 +0000 (17:06 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Aug 2021 08:06:43 +0000 (17:06 +0900)
Change-Id: I716b8b72a1d050d414d6664491144d1a800bd838

src/lib/tvgCommon.h

index 4bf1d13..b17378e 100644 (file)
 #ifndef _TVG_COMMON_H_
 #define _TVG_COMMON_H_
 
+#include "config.h"
 #ifdef THORVG_LOG_ENABLED
 #include <dlog.h>
 #endif
-#include "config.h"
 #include "thorvg.h"
 
 using namespace std;
@@ -40,7 +40,7 @@ using namespace tvg;
     #define TVG_UNUSED __attribute__ ((__unused__))
 #endif
 
-#define LOG_TAG "thorvg"
+#define TVG_LOG_TAG "thorvg"
 
 //TVG class identifier values
 #define TVG_CLASS_ID_UNDEFINED 0
@@ -58,7 +58,7 @@ enum class FileType { Tvg = 0, Svg, Raw, Png, Jpg, Unknown };
 
     //Use dlog system in Tizen
     #define TVGLOG(tag, fmt, ...)
-    #define TVGERR(tag, fmt, ...) dlog_print(DLOG_ERROR, LOG_TAG, tag ": " fmt "\n", ##__VA_ARGS__)
+    #define TVGERR(tag, fmt, ...) dlog_print(DLOG_ERROR, TVG_LOG_TAG, tag ": " fmt "\n", ##__VA_ARGS__)
 #else
     #define TVGERR(...)
     #define TVGLOG(...)