diff options
Diffstat (limited to 'src/framework/common/connection.cpp')
-rw-r--r-- | src/framework/common/connection.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/framework/common/connection.cpp b/src/framework/common/connection.cpp index 421dde7..417e2f6 100644 --- a/src/framework/common/connection.cpp +++ b/src/framework/common/connection.cpp @@ -24,7 +24,15 @@ #include <utility> #ifdef TIZEN_TEST_GCOV -extern "C" void __gcov_flush(); +# 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 namespace Csr { |