8288082: Build failure due to __clang_major__ is not defined after JDK-8214976

Reviewed-by: dholmes
This commit is contained in:
Jie Fu 2022-06-09 00:01:31 +00:00
parent 65f0829d64
commit a941bc2de6

View File

@ -63,7 +63,7 @@
#endif // clang/gcc version check
#if (__GNUC__ >= 9) || (__clang_major__ >= 14)
#if (__GNUC__ >= 9) || (defined(__clang_major__) && (__clang_major__ >= 14))
// Use "warning" attribute to detect uses of "forbidden" functions.
//