diff options
-rw-r--r-- | supervisor/RequestHandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/supervisor/RequestHandler.cpp b/supervisor/RequestHandler.cpp index c400ce3..d56f248 100644 --- a/supervisor/RequestHandler.cpp +++ b/supervisor/RequestHandler.cpp @@ -18,6 +18,15 @@ #ifdef TIZEN_TEST_GCOV extern "C" { #include <gcov.h> + +#if (defined(__GNUC__) && ((__GNUC__ == 11 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 12))) \ + || (defined(__clang__) && (__clang_major__ >= 12)) +#define __gcov_flush() \ + do { \ + __gcov_dump(); \ + __gcov_reset(); \ + } while (0) +#endif } #endif #include "ClientPrivilege.h" |