From 30f3b36e07ce37a3fe1909fb4b1419a00d2fdd81 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 14 Nov 2014 22:55:54 +0100 Subject: sal: remove pointless checking for __cplusplus in public C++ headers Change-Id: Ibbcdb4a3f46b7491396a1b1c7b4cdc1af05f30d3 --- include/osl/conditn.hxx | 3 --- include/osl/mutex.hxx | 3 --- include/rtl/strbuf.hxx | 3 --- 3 files changed, 9 deletions(-) diff --git a/include/osl/conditn.hxx b/include/osl/conditn.hxx index fd0dfdfb303d..9485e7f41aed 100644 --- a/include/osl/conditn.hxx +++ b/include/osl/conditn.hxx @@ -20,8 +20,6 @@ #ifndef INCLUDED_OSL_CONDITN_HXX #define INCLUDED_OSL_CONDITN_HXX -#ifdef __cplusplus - #include #include @@ -122,7 +120,6 @@ namespace osl } -#endif /* __cplusplus */ #endif // INCLUDED_OSL_CONDITN_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/osl/mutex.hxx b/include/osl/mutex.hxx index 17d57e80b473..99241eb8b135 100644 --- a/include/osl/mutex.hxx +++ b/include/osl/mutex.hxx @@ -20,8 +20,6 @@ #ifndef INCLUDED_OSL_MUTEX_HXX #define INCLUDED_OSL_MUTEX_HXX -#ifdef __cplusplus - #include @@ -240,7 +238,6 @@ namespace osl typedef ResettableGuard< Mutex > ResettableMutexGuard; } -#endif /* __cplusplus */ #endif // INCLUDED_OSL_MUTEX_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx index 1bfe640e3587..c089d61d48ad 100644 --- a/include/rtl/strbuf.hxx +++ b/include/rtl/strbuf.hxx @@ -33,8 +33,6 @@ #include #endif -#ifdef __cplusplus - // The unittest uses slightly different code to help check that the proper // calls are made. The class is put into a different namespace to make // sure the compiler generates a different (if generating also non-inline) @@ -974,7 +972,6 @@ typedef rtlunittest::OStringBuffer OStringBuffer; using ::rtl::OStringBuffer; #endif -#endif /* __cplusplus */ #endif // INCLUDED_RTL_STRBUF_HXX -- cgit