Replace __gcov_flush by __gcov_dump and __gcov_reset 76/318376/2 tizen
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 27 Sep 2024 08:14:43 +0000 (17:14 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 27 Sep 2024 08:19:23 +0000 (17:19 +0900)
Change-Id: Id841fa7360ff9c773dd4eeb529d9330cdda2b2d1

packaging/download-provider.spec
provider/download-provider-main.c

index cd036a9..2d26e7e 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.4.1
+Version:    2.4.2
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index 1a2c14e..e736b47 100755 (executable)
@@ -33,7 +33,15 @@ pthread_t g_client_manager_tid;
 void *dp_client_manager(void *arg);
 
 #if (BUILD_GCOV != 0)
+# if (defined(__GNUC__) \
+        && ((__GNUC__ == 11 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 12))) \
+               || (defined(__clang__) && (__clang_major__ >= 12))
+extern void __gcov_dump(void);
+extern void __gcov_reset(void);
+    #  define __gcov_flush() do { __gcov_dump(); __gcov_reset(); } while (0)
+# else
 extern void __gcov_flush(void);
+# endif
 #endif
 
 int main(int argc, char **argv)