diff --git a/indexer/drules_include.hpp b/indexer/drules_include.hpp index 8ea87a889d..7c1ac11e13 100644 --- a/indexer/drules_include.hpp +++ b/indexer/drules_include.hpp @@ -2,14 +2,14 @@ #include "std/target_os.hpp" -// Surprisingly, clang defines __GNUC__ -#if defined(__GNUC__) && !defined(__llvm__) && !defined(__INTEL_COMPILER) +// Both clang and gcc implements `#pragma GCC` +#if !defined(__INTEL_COMPILER) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" -#endif // defined(__GNUC__) && !defined(__llvm__) && !defined(__INTEL_COMPILER) +#endif // !defined(__INTEL_COMPILER) #include "indexer/drules_struct.pb.h" -#if defined(__GNUC__) && !defined(__llvm__) && !defined(__INTEL_COMPILER) +#if !defined(__INTEL_COMPILER) #pragma GCC diagnostic pop -#endif // defined(__GNUC__) && !defined(__llvm__) && !defined(__INTEL_COMPILER) +#endif // !defined(__INTEL_COMPILER)