diff options
author | Jihoon Jung <jh8801.jung@samsung.com> | 2024-11-21 13:05:11 +0900 |
---|---|---|
committer | Jihoon Jung <jh8801.jung@samsung.com> | 2024-11-21 13:05:47 +0900 |
commit | a7d940d927ae16e95a5662e8aa2c2171e3dcdb5b (patch) | |
tree | 7320e02b29297b6183f6f800b2a06a5992d79554 | |
parent | 9c6680f33d68ce5a9b0e4a22137601eca8893893 (diff) | |
download | zigbee-manager-tizen.tar.gz zigbee-manager-tizen.tar.bz2 zigbee-manager-tizen.zip |
Separate gcc version for gcovaccepted/tizen/unified/20241122.171519tizenaccepted/tizen_unified
Change-Id: I4ba5d2dd5d99d4189b1a686c6226c9891d2f2a7c
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r-- | zigbee-daemon/src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zigbee-daemon/src/main.c b/zigbee-daemon/src/main.c index a09bd17..8b5d1f0 100644 --- a/zigbee-daemon/src/main.c +++ b/zigbee-daemon/src/main.c @@ -35,7 +35,15 @@ ZigBeeService *zigbee_service; #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 /* LCOV_EXCL_START */ |