Separate gcc version for gcov 92/320692/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20241122.171516 accepted/tizen/unified/x/20241218.032750 accepted/tizen/unified/x/asan/20241224.004516
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 21 Nov 2024 04:15:34 +0000 (13:15 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Thu, 21 Nov 2024 04:16:05 +0000 (13:16 +0900)
Change-Id: I550b8a0a5418dd5c13073f29dd837e25ec67ecb2
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
server/smartcard-daemon.cpp

index dba40ec2c5e150318053c875bc2171a9440677a7..a412c7b89765e7c4a2c8ec5cb343ac1cfc89ac92 100644 (file)
@@ -43,8 +43,16 @@ using namespace smartcard_service_api;
 GMainLoop *main_loop = NULL;
 
 #if (BUILD_GCOV != 0)
+# if (defined(__GNUC__) \
+        && ((__GNUC__ == 11 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 12))) \
+        || (defined(__clang__) && (__clang_major__ >= 12))
+extern "C" void __gcov_dump(void);
+extern "C" void __gcov_reset(void);
+    #  define __gcov_flush() do { __gcov_dump(); __gcov_reset(); } while (0)
+# else
 extern "C" void __gcov_flush(void);
 #endif
+#endif
 
 static void _bus_acquired_cb(GDBusConnection *connection,
        const gchar *path, gpointer user_data)