From a8d39edda0e94926d46a9f24a824596cbdf46d92 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 5 Oct 2025 09:53:53 +0200 Subject: [PATCH] Put headers behind #if HAVE_FEATURE_BREAKPAD that are needed for the #if HAVE_FEATURE_BREAKPAD case so that IWYU does not give incorrect warnings in --disable-breakpad builds Change-Id: I05a71ac57fc53e02b293e47a56e92f993afd0592 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191909 Tested-by: Jenkins Reviewed-by: Gabor Kelemen --- include/desktop/crashreport.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/desktop/crashreport.hxx b/include/desktop/crashreport.hxx index 403e3117117d..e0095efc6fa9 100644 --- a/include/desktop/crashreport.hxx +++ b/include/desktop/crashreport.hxx @@ -10,13 +10,14 @@ #ifndef INCLUDED_DESKTOP_CRASHREPORT_HXX #define INCLUDED_DESKTOP_CRASHREPORT_HXX -#include #include -#include #include +#if HAVE_FEATURE_BREAKPAD +#include +#include // vector not sort the entries #include #include @@ -27,6 +28,7 @@ namespace google_breakpad { class ExceptionHandler; } +#endif /** * Provides access to the crash reporter service.