mirror of
https://github.com/uxlfoundation/oneDNN.git
synced 2025-10-20 18:43:49 +08:00
third_party: itt: fix undefined macro hit
This commit is contained in:
committed by
Dmitry Zarukin
parent
ea9c699451
commit
7edc35c37c
2
third_party/ittnotify/ittnotify_static.c
vendored
2
third_party/ittnotify/ittnotify_static.c
vendored
@ -56,7 +56,7 @@ static const char api_version[] = API_VERSION "\0\n@(#) $Revision$\n";
|
||||
#endif
|
||||
|
||||
#ifndef ITT_ATTRIBUTE_FALLTHROUGH
|
||||
#if (HAS_CPP_ATTR(fallthrough) || HAS_C_ATTR(fallthrough)) && (__cplusplus >= 201703L || _MSVC_LANG >= 201703L)
|
||||
#if (HAS_CPP_ATTR(fallthrough) || HAS_C_ATTR(fallthrough)) && ((defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))
|
||||
#define ITT_ATTRIBUTE_FALLTHROUGH [[fallthrough]]
|
||||
#elif HAS_CPP_ATTR(gnu::fallthrough)
|
||||
#define ITT_ATTRIBUTE_FALLTHROUGH [[gnu::fallthrough]]
|
||||
|
Reference in New Issue
Block a user