summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/checkconfigmacros.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/checkconfigmacros.cxx')
-rw-r--r--compilerplugins/clang/checkconfigmacros.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/checkconfigmacros.cxx b/compilerplugins/clang/checkconfigmacros.cxx
index 6daa9ed2a17e..4bed4c82502c 100644
--- a/compilerplugins/clang/checkconfigmacros.cxx
+++ b/compilerplugins/clang/checkconfigmacros.cxx
@@ -12,8 +12,11 @@
#include <memory>
#include <set>
+#include "compat.hxx"
#include "plugin.hxx"
+#include "config_clang.h"
+
#include <clang/Lex/Preprocessor.h>
namespace loplugin
@@ -69,7 +72,7 @@ void CheckConfigMacros::MacroDefined( const Token& macroToken, const MacroDirect
// fprintf(stderr,"DEF: %s %s\n", macroToken.getIdentifierInfo()->getName().data(), filename );
StringRef macro = macroToken.getIdentifierInfo()->getName();
// Skia #defines do not have values, but we set them in config_skia.h .
- if( macro.startswith( "SK_" ) && loplugin::isSamePathname(filename, BUILDDIR "/config_host/config_skia.h"))
+ if( compat::starts_with(macro, "SK_" ) && loplugin::isSamePathname(filename, BUILDDIR "/config_host/config_skia.h"))
return;
configMacros.insert( macro.str());
}