From 022712c56a985cb78f0eac0e74a5b618f68eb379 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 2 Jul 2012 17:43:32 +0200 Subject: include guards for precompiled_xxx.hxx files It seems this makes clang somewhat faster. Change-Id: I5a22763acf7991c45d7e9fd25eb0b5bda1fae27f --- sal/inc/pch/precompiled_sal.hxx | 6 ++++++ xmloff/inc/pch/precompiled_xmloff.hxx | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/sal/inc/pch/precompiled_sal.hxx b/sal/inc/pch/precompiled_sal.hxx index 11c10b293835..56f5004ed550 100644 --- a/sal/inc/pch/precompiled_sal.hxx +++ b/sal/inc/pch/precompiled_sal.hxx @@ -7,6 +7,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#ifndef PRECOMPILED_SAL_HXX +#define PRECOMPILED_SAL_HXX + #ifdef PRECOMPILED_HEADERS #include @@ -30,4 +33,7 @@ #endif +#endif // PRECOMPILED_SAL_HXX + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/inc/pch/precompiled_xmloff.hxx b/xmloff/inc/pch/precompiled_xmloff.hxx index d56bd07ea710..7546a34496db 100644 --- a/xmloff/inc/pch/precompiled_xmloff.hxx +++ b/xmloff/inc/pch/precompiled_xmloff.hxx @@ -49,6 +49,8 @@ #include #include +#ifndef PRECOMPILED_XMLOFF_HXX +#define PRECOMPILED_XMLOFF_HXX //---MARKER--- #include "sal/config.h" @@ -1275,4 +1277,6 @@ #endif +#endif // PRECOMPILED_XMLOFF_HXX + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit