diff --git a/projects/roctracer/header_template.hpp.in b/projects/roctracer/header_template.hpp.in index 391788987b..2cd01969c6 100644 --- a/projects/roctracer/header_template.hpp.in +++ b/projects/roctracer/header_template.hpp.in @@ -23,7 +23,12 @@ #ifndef @include_guard@ #define @include_guard@ +#if defined(__GNUC__) +#warning "This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with roctracer" +#else #pragma message("This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with roctracer") +#endif + @include_statements@ #endif