sal/osl/w32/dllentry.cxx    |    6 +-
 sal/osl/w32/file.cxx        |    4 -
 sal/osl/w32/file_dirvol.cxx |    6 +-
 sal/osl/w32/file_error.cxx  |    4 -
 sal/osl/w32/file_error.h    |   37 -----------------
 sal/osl/w32/file_error.hxx  |   29 +++++++++++++
 sal/osl/w32/file_url.cxx    |    6 +-
 sal/osl/w32/file_url.h      |   93 --------------------------------------------
 sal/osl/w32/file_url.hxx    |   85 ++++++++++++++++++++++++++++++++++++++++
 sal/osl/w32/filetime.h      |   50 -----------------------
 sal/osl/w32/filetime.hxx    |   38 +++++++++++++++++
 sal/osl/w32/gmutex.h        |   39 ------------------
 sal/osl/w32/gmutex.hxx      |   31 ++++++++++++++
 sal/osl/w32/module.cxx      |    2 
 sal/osl/w32/mutex.cxx       |    2 
 sal/osl/w32/nlsupport.cxx   |    2 
 sal/osl/w32/nlsupport.h     |   29 -------------
 sal/osl/w32/nlsupport.hxx   |   21 +++++++++
 sal/osl/w32/path_helper.cxx |    4 -
 sal/osl/w32/path_helper.h   |   65 ------------------------------
 sal/osl/w32/path_helper.hxx |   33 +++++++++++++++
 sal/osl/w32/process.cxx     |   10 ++--
 sal/osl/w32/procimpl.cxx    |    4 -
 sal/osl/w32/procimpl.h      |   40 ------------------
 sal/osl/w32/procimpl.hxx    |   32 +++++++++++++++
 sal/osl/w32/profile.cxx     |    2 
 sal/osl/w32/salinit.cxx     |    2 
 sal/osl/w32/secimpl.h       |   47 ----------------------
 sal/osl/w32/secimpl.hxx     |   39 ++++++++++++++++++
 sal/osl/w32/security.cxx    |    2 
 sal/osl/w32/signal.cxx      |    2 
 sal/osl/w32/socket.cxx      |    6 --
 sal/osl/w32/sockimpl.h      |   56 --------------------------
 sal/osl/w32/sockimpl.hxx    |   48 ++++++++++++++++++++++
 sal/osl/w32/tempfile.cxx    |    4 -
 sal/osl/w32/thread.cxx      |    2 
 sal/osl/w32/thread.h        |   33 ---------------
 sal/osl/w32/thread.hxx      |   25 +++++++++++
 sal/osl/w32/time.cxx        |    4 -
 sal/osl/w32/time.h          |   27 ------------
 sal/osl/w32/time.hxx        |   19 ++++++++
 41 files changed, 434 insertions(+), 556 deletions(-)

New commits:
commit 8fdf363f598ef45e49ada9d5a2d5747189ea401c
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Mar 3 15:00:33 2017 +0100

    Change sal/osl/w32/*.h -> *.hxx
    
    ...which are now only ever included from C++ code.  Drop extern "C" where
    appropriate (i.e., generally everywhere) and fix the occasional ensuing 
loplugin
    warning.  (But no further C++'ification for now.)
    
    Change-Id: I78830692888ee0ae0cac49878042effad2d6707f
    Reviewed-on: https://gerrit.libreoffice.org/34865
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sal/osl/w32/dllentry.cxx b/sal/osl/w32/dllentry.cxx
index 5158979..0bce302 100644
--- a/sal/osl/w32/dllentry.cxx
+++ b/sal/osl/w32/dllentry.cxx
@@ -37,11 +37,11 @@
 #include <osl/mutex.h>
 #include <osl/thread.h>
 
-#include "file_url.h"
-#include "gmutex.h"
+#include "file_url.hxx"
+#include "gmutex.hxx"
 #include "rtllifecycle.h"
 
-#include <thread.h>
+#include <thread.hxx>
 
 /*
 This is needed because DllMain is called after static constructors. A DLL's
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx
index bb5df99..dd052f9 100644
--- a/sal/osl/w32/file.cxx
+++ b/sal/osl/w32/file.cxx
@@ -24,8 +24,8 @@
 #include "osl/file.hxx"
 
 #include <file-impl.hxx>
-#include "file_url.h"
-#include "file_error.h"
+#include "file_url.hxx"
+#include "file_error.hxx"
 
 #include "osl/diagnose.h"
 #include "rtl/alloc.h"
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index 1f50617..4351ba0 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -23,10 +23,10 @@
 
 #include "osl/file.h"
 
-#include "file_url.h"
-#include <filetime.h>
+#include "file_url.hxx"
+#include <filetime.hxx>
 #include <sal/macros.h>
-#include "file_error.h"
+#include "file_error.hxx"
 
 #include "path_helper.hxx"
 
diff --git a/sal/osl/w32/file_error.cxx b/sal/osl/w32/file_error.cxx
index cdb8571..520fad5 100644
--- a/sal/osl/w32/file_error.cxx
+++ b/sal/osl/w32/file_error.cxx
@@ -21,10 +21,10 @@
 #define _UNICODE
 #include "systools/win32/uwinapi.h"
 
-#include "file_error.h"
+#include "file_error.hxx"
 
 #include "osl/diagnose.h"
-#include "osl/thread.h"
+#include "osl/thread.hxx"
 #include <sal/macros.h>
 
 /* OS error to oslFileError values mapping table */
diff --git a/sal/osl/w32/file_error.h b/sal/osl/w32/file_error.hxx
similarity index 84%
rename from sal/osl/w32/file_error.h
rename to sal/osl/w32/file_error.hxx
index 483b966..57d825b 100644
--- a/sal/osl/w32/file_error.h
+++ b/sal/osl/w32/file_error.hxx
@@ -17,21 +17,13 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_FILE_ERROR_H
-#define INCLUDED_SAL_OSL_W32_FILE_ERROR_H
+#ifndef INCLUDED_SAL_OSL_W32_FILE_ERROR_HXX
+#define INCLUDED_SAL_OSL_W32_FILE_ERROR_HXX
 
 #include "osl/file.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 oslFileError oslTranslateFileError (/*DWORD*/ unsigned long dwError);
 
-#ifdef __cplusplus
-}
 #endif
 
-#endif // INCLUDED_SAL_OSL_W32_FILE_ERROR_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index 1a5a188..ce61eb1 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -21,9 +21,9 @@
 #define _UNICODE
 #include "systools/win32/uwinapi.h"
 
-#include "file_url.h"
+#include "file_url.hxx"
 #include <sal/macros.h>
-#include "file_error.h"
+#include "file_error.hxx"
 
 #include "rtl/alloc.h"
 #include <rtl/ustring.hxx>
@@ -618,7 +618,7 @@ static void osl_encodeURL_( rtl_uString *strURL, rtl_String 
**pstrEncodedURL )
     rtl_freeMemory( pszEncodedURL );
 }
 
-oslFileError osl_getSystemPathFromFileURL_( rtl_uString *strURL, rtl_uString 
**pustrPath, sal_Bool bAllowRelative )
+oslFileError osl_getSystemPathFromFileURL_( rtl_uString *strURL, rtl_uString 
**pustrPath, bool bAllowRelative )
 {
     rtl_String          *strUTF8 = nullptr;
     rtl_uString         *strDecodedURL = nullptr;
diff --git a/sal/osl/w32/file_url.h b/sal/osl/w32/file_url.hxx
similarity index 91%
rename from sal/osl/w32/file_url.h
rename to sal/osl/w32/file_url.hxx
index 29dfa8f..6ccbc61 100644
--- a/sal/osl/w32/file_url.h
+++ b/sal/osl/w32/file_url.hxx
@@ -17,8 +17,8 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_FILE_URL_H
-#define INCLUDED_SAL_OSL_W32_FILE_URL_H
+#ifndef INCLUDED_SAL_OSL_W32_FILE_URL_HXX
+#define INCLUDED_SAL_OSL_W32_FILE_URL_HXX
 
 #include "sal/types.h"
 #include "rtl/ustring.h"
@@ -36,10 +36,6 @@
 #pragma warning(pop)
 #endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #define PATHTYPE_ERROR                      0
 #define PATHTYPE_RELATIVE                   1
 #define PATHTYPE_ABSOLUTE_UNC               2
@@ -74,7 +70,7 @@ DWORD GetCaseCorrectPathName (
 oslFileError osl_getSystemPathFromFileURL_ (
     rtl_uString *  strURL,
     rtl_uString ** pustrPath,
-    sal_Bool       bAllowRelative
+    bool       bAllowRelative
 );
 
 oslFileError osl_getFileURLFromSystemPath_ (
@@ -84,10 +80,6 @@ oslFileError osl_getFileURLFromSystemPath_ (
 
 extern oslMutex g_CurrentDirectoryMutex;
 
-#ifdef __cplusplus
-}
 #endif
 
-#endif // INCLUDED_SAL_OSL_W32_FILE_URL_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/w32/filetime.h b/sal/osl/w32/filetime.hxx
similarity index 83%
rename from sal/osl/w32/filetime.h
rename to sal/osl/w32/filetime.hxx
index 130dd8e..0f47ebf 100644
--- a/sal/osl/w32/filetime.h
+++ b/sal/osl/w32/filetime.hxx
@@ -7,8 +7,8 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_FILETIME_H
-#define INCLUDED_SAL_OSL_W32_FILETIME_H
+#ifndef INCLUDED_SAL_OSL_W32_FILETIME_HXX
+#define INCLUDED_SAL_OSL_W32_FILETIME_HXX
 
 #include <sal/config.h>
 
@@ -16,20 +16,10 @@
 
 #include <osl/time.h>
 
-#if defined __cplusplus
-extern "C" {
-#endif
-
 BOOL TimeValueToFileTime(TimeValue const * cpTimeVal, FILETIME * pFTime);
 
 BOOL FileTimeToTimeValue(FILETIME const * cpFTime, TimeValue * pTimeVal);
 
-#if defined __cplusplus
-}
-#endif
-
-#if defined __cplusplus
-
 namespace osl { namespace detail {
 
 inline __int64 getFiletime(FILETIME const & ft) {
@@ -45,6 +35,4 @@ inline void setFiletime(FILETIME & ft, __int64 value) {
 
 #endif
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/sal/osl/w32/gmutex.h b/sal/osl/w32/gmutex.hxx
similarity index 87%
rename from sal/osl/w32/gmutex.h
rename to sal/osl/w32/gmutex.hxx
index cb7e27e..013b4c1 100644
--- a/sal/osl/w32/gmutex.h
+++ b/sal/osl/w32/gmutex.hxx
@@ -17,23 +17,15 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_GMUTEX_H
-#define INCLUDED_SAL_OSL_W32_GMUTEX_H
+#ifndef INCLUDED_SAL_OSL_W32_GMUTEX_HXX
+#define INCLUDED_SAL_OSL_W32_GMUTEX_HXX
 
 #include <sal/config.h>
 
 #include <osl/mutex.h>
 
-#if defined __cplusplus
-extern "C" {
-#endif
-
 extern oslMutex g_Mutex;
 
-#if defined __cplusplus
-}
-#endif
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index f6bba2e..be193cb 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -20,7 +20,7 @@
 #include "system.h"
 #include <tlhelp32.h>
 
-#include "file_url.h"
+#include "file_url.hxx"
 #include "path_helper.hxx"
 
 #include <osl/module.h>
diff --git a/sal/osl/w32/mutex.cxx b/sal/osl/w32/mutex.cxx
index b436f95..b3b4646 100644
--- a/sal/osl/w32/mutex.cxx
+++ b/sal/osl/w32/mutex.cxx
@@ -19,7 +19,7 @@
 
 #include <sal/config.h>
 
-#include "gmutex.h"
+#include "gmutex.hxx"
 #include "system.h"
 
 #include <osl/mutex.h>
diff --git a/sal/osl/w32/nlsupport.cxx b/sal/osl/w32/nlsupport.cxx
index 16328da..8656d55 100644
--- a/sal/osl/w32/nlsupport.cxx
+++ b/sal/osl/w32/nlsupport.cxx
@@ -27,7 +27,7 @@
 #endif
 #include <wchar.h>
 
-#include <nlsupport.h>
+#include <nlsupport.hxx>
 
 #include <osl/mutex.h>
 #include <osl/nlsupport.h>
diff --git a/sal/osl/w32/nlsupport.h b/sal/osl/w32/nlsupport.hxx
similarity index 77%
rename from sal/osl/w32/nlsupport.h
rename to sal/osl/w32/nlsupport.hxx
index e42d391..cd09bab 100644
--- a/sal/osl/w32/nlsupport.h
+++ b/sal/osl/w32/nlsupport.hxx
@@ -7,23 +7,15 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_NLSUPPORT_H
-#define INCLUDED_SAL_OSL_W32_NLSUPPORT_H
+#ifndef INCLUDED_SAL_OSL_W32_NLSUPPORT_HXX
+#define INCLUDED_SAL_OSL_W32_NLSUPPORT_HXX
 
 #include <sal/config.h>
 
 #include <rtl/locale.h>
 
-#if defined __cplusplus
-extern "C" {
-#endif
-
 void imp_getProcessLocale(rtl_Locale ** ppLocale);
 
-#if defined __cplusplus
-}
-#endif
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/sal/osl/w32/path_helper.cxx b/sal/osl/w32/path_helper.cxx
index 1327265..a15d8bb 100644
--- a/sal/osl/w32/path_helper.cxx
+++ b/sal/osl/w32/path_helper.cxx
@@ -92,7 +92,7 @@ const sal_Char* const LDP_WITH_SLASH     = ":/";
 // API accepts this case
 const sal_Char* const LDP_WITH_DOT_BACKSLASH = ":.\\";
 
-sal_Int32 osl_systemPathIsLogicalDrivePattern(/*in*/ const rtl_uString* 
pustrPath)
+bool osl_systemPathIsLogicalDrivePattern(/*in*/ const rtl_uString* pustrPath)
 {
     const sal_Unicode* p = 
rtl_uString_getStr(const_cast<rtl_uString*>(pustrPath));
     if (iswalpha(*p++))
@@ -102,7 +102,7 @@ sal_Int32 osl_systemPathIsLogicalDrivePattern(/*in*/ const 
rtl_uString* pustrPat
                 (0 == rtl_ustr_ascii_compare(p, LDP_WITH_SLASH)) ||
                 (0 == rtl_ustr_ascii_compare(p, LDP_WITH_DOT_BACKSLASH)));
     }
-    return 0;
+    return false;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/w32/path_helper.h b/sal/osl/w32/path_helper.h
deleted file mode 100644
index 7da985b..0000000
--- a/sal/osl/w32/path_helper.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_SAL_OSL_W32_PATH_HELPER_H
-#define INCLUDED_SAL_OSL_W32_PATH_HELPER_H
-
-#include <sal/types.h>
-#include <rtl/ustring.h>
-#include <osl/file.h>
-#include <osl/diagnose.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/*******************************************************************
- osl_systemPathEnsureSeparator
- Adds a trailing path separator to the given system path if not
- already there and if the path is not the root path or a logical
- drive alone
- ******************************************************************/
-
-void osl_systemPathEnsureSeparator(/*inout*/ rtl_uString** ppustrPath);
-
-/*******************************************************************
- osl_systemPathRemoveSeparator
- Removes the last separator from the given system path if any and
- if the path is not the root path '\'
- ******************************************************************/
-
-void SAL_CALL osl_systemPathRemoveSeparator(/*inout*/ rtl_uString** 
ppustrPath);
-
-/*******************************************************************
- osl_is_logical_drive_pattern
- Returns whether a given path is only a logical drive pattern or not.
- A logical drive pattern is something like "a:\", "c:\".
- No logical drive pattern is something like "c:\test"
- ******************************************************************/
-
-sal_Int32 osl_systemPathIsLogicalDrivePattern(/*in*/ const rtl_uString* 
pustrPath);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/w32/path_helper.hxx b/sal/osl/w32/path_helper.hxx
index a31cd37..6ab07bf 100644
--- a/sal/osl/w32/path_helper.hxx
+++ b/sal/osl/w32/path_helper.hxx
@@ -20,10 +20,41 @@
 #ifndef INCLUDED_SAL_OSL_W32_PATH_HELPER_HXX
 #define INCLUDED_SAL_OSL_W32_PATH_HELPER_HXX
 
-#include "path_helper.h"
+#include <sal/config.h>
+
+#include <osl/diagnose.h>
 #include <osl/diagnose.h>
+#include <osl/file.h>
 #include <rtl/alloc.h>
+#include <rtl/ustring.h>
 #include <rtl/ustring.hxx>
+#include <sal/types.h>
+
+/*******************************************************************
+ osl_systemPathEnsureSeparator
+ Adds a trailing path separator to the given system path if not
+ already there and if the path is not the root path or a logical
+ drive alone
+ ******************************************************************/
+
+void osl_systemPathEnsureSeparator(/*inout*/ rtl_uString** ppustrPath);
+
+/*******************************************************************
+ osl_systemPathRemoveSeparator
+ Removes the last separator from the given system path if any and
+ if the path is not the root path '\'
+ ******************************************************************/
+
+void SAL_CALL osl_systemPathRemoveSeparator(/*inout*/ rtl_uString** 
ppustrPath);
+
+/*******************************************************************
+ osl_is_logical_drive_pattern
+ Returns whether a given path is only a logical drive pattern or not.
+ A logical drive pattern is something like "a:\", "c:\".
+ No logical drive pattern is something like "c:\test"
+ ******************************************************************/
+
+bool osl_systemPathIsLogicalDrivePattern(/*in*/ const rtl_uString* pustrPath);
 
 namespace osl
 {
diff --git a/sal/osl/w32/process.cxx b/sal/osl/w32/process.cxx
index 5926867..bdaaf11 100644
--- a/sal/osl/w32/process.cxx
+++ b/sal/osl/w32/process.cxx
@@ -37,11 +37,11 @@
 #include <osl/thread.h>
 #include <sal/log.hxx>
 
-#include <filetime.h>
-#include <nlsupport.h>
-#include "procimpl.h"
-#include "sockimpl.h"
-#include "file_url.h"
+#include <filetime.hxx>
+#include <nlsupport.hxx>
+#include "procimpl.hxx"
+#include "sockimpl.hxx"
+#include "file_url.hxx"
 #include "path_helper.hxx"
 #include <rtl/ustrbuf.h>
 #include <rtl/alloc.h>
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
index 738b10e..965db4a 100644
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -34,10 +34,10 @@
 #endif
 
 #include <file-impl.hxx>
-#include "procimpl.h"
+#include "procimpl.hxx"
 #include <rtl/ustring.hxx>
 #include <rtl/ustrbuf.hxx>
-#include "secimpl.h"
+#include "secimpl.hxx"
 #include <osl/file.hxx>
 
 #include <vector>
diff --git a/sal/osl/w32/procimpl.h b/sal/osl/w32/procimpl.hxx
similarity index 83%
rename from sal/osl/w32/procimpl.h
rename to sal/osl/w32/procimpl.hxx
index 0945b45..ee985e3 100644
--- a/sal/osl/w32/procimpl.h
+++ b/sal/osl/w32/procimpl.hxx
@@ -17,23 +17,15 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_PROCIMPL_H
-#define INCLUDED_SAL_OSL_W32_PROCIMPL_H
+#ifndef INCLUDED_SAL_OSL_W32_PROCIMPL_HXX
+#define INCLUDED_SAL_OSL_W32_PROCIMPL_HXX
 
 #include <osl/process.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct _oslProcessImpl {
+struct oslProcessImpl {
     HANDLE m_hProcess;
     DWORD  m_IdProcess;
-} oslProcessImpl;
-
-#ifdef __cplusplus
-}
-#endif
+};
 
 #endif
 
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index 86592b0..26999f8 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -19,7 +19,7 @@
 
 #include "system.h"
 
-#include "file_url.h"
+#include "file_url.hxx"
 #include "path_helper.hxx"
 
 #include <string.h>
diff --git a/sal/osl/w32/salinit.cxx b/sal/osl/w32/salinit.cxx
index dd94af1..1c482fa 100644
--- a/sal/osl/w32/salinit.cxx
+++ b/sal/osl/w32/salinit.cxx
@@ -20,7 +20,7 @@
 #include "sal/config.h"
 
 #include "system.h"
-#include "time.h"
+#include "time.hxx"
 
 #include <osl/process.h>
 #include <sal/main.h>
diff --git a/sal/osl/w32/secimpl.h b/sal/osl/w32/secimpl.hxx
similarity index 89%
rename from sal/osl/w32/secimpl.h
rename to sal/osl/w32/secimpl.hxx
index de8a506..43af57d 100644
--- a/sal/osl/w32/secimpl.h
+++ b/sal/osl/w32/secimpl.hxx
@@ -17,8 +17,8 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_SECIMPL_H
-#define INCLUDED_SAL_OSL_W32_SECIMPL_H
+#ifndef INCLUDED_SAL_OSL_W32_SECIMPL_HXX
+#define INCLUDED_SAL_OSL_W32_SECIMPL_HXX
 
 #include <winnetwk.h>
 
@@ -26,10 +26,6 @@
 
 #define USER_BUFFER_SIZE 256
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 typedef struct {
     HANDLE m_hProfile;
     HANDLE m_hToken;
@@ -38,10 +34,6 @@ typedef struct {
     NETRESOURCEW *m_pNetResource;
 } oslSecurityImpl;
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/w32/security.cxx b/sal/osl/w32/security.cxx
index 4406bfb..797feb7 100644
--- a/sal/osl/w32/security.cxx
+++ b/sal/osl/w32/security.cxx
@@ -25,7 +25,7 @@
 #include <osl/file.h>
 #include <systools/win32/uwinapi.h>
 #include <sal/macros.h>
-#include "secimpl.h"
+#include "secimpl.hxx"
 
 /*****************************************************************************/
 /* Data Type Definition */
diff --git a/sal/osl/w32/signal.cxx b/sal/osl/w32/signal.cxx
index c74dde4..dbf3f62 100644
--- a/sal/osl/w32/signal.cxx
+++ b/sal/osl/w32/signal.cxx
@@ -26,7 +26,7 @@
 #include "system.h"
 #include <tchar.h>
 
-#include "file_url.h"
+#include "file_url.hxx"
 #include "path_helper.hxx"
 
 #include <osl/diagnose.h>
diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx
index 4e1249c..993da53 100644
--- a/sal/osl/w32/socket.cxx
+++ b/sal/osl/w32/socket.cxx
@@ -24,9 +24,7 @@
 #include <rtl/alloc.h>
 #include <sal/log.hxx>
 
-#include "sockimpl.h"
-
-extern "C" {
+#include "sockimpl.hxx"
 
 /*
     oslSocketAddr is a pointer to a Berkeley struct sockaddr.
@@ -2024,6 +2022,4 @@ sal_Int32 SAL_CALL osl_demultiplexSocketEvents (
                   pTimeout ? &tv : nullptr);
 }
 
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/w32/sockimpl.h b/sal/osl/w32/sockimpl.hxx
similarity index 91%
rename from sal/osl/w32/sockimpl.h
rename to sal/osl/w32/sockimpl.hxx
index 1e3898e..d052d9f 100644
--- a/sal/osl/w32/sockimpl.h
+++ b/sal/osl/w32/sockimpl.hxx
@@ -17,16 +17,12 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_SOCKIMPL_H
-#define INCLUDED_SAL_OSL_W32_SOCKIMPL_H
+#ifndef INCLUDED_SAL_OSL_W32_SOCKIMPL_HXX
+#define INCLUDED_SAL_OSL_W32_SOCKIMPL_HXX
 
 #include <osl/socket.h>
 #include <osl/interlck.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /*****************************************************************************/
 /* oslSocketImpl */
 /*****************************************************************************/
@@ -47,10 +43,6 @@ struct oslSocketAddrImpl
 oslSocket osl_createSocketImpl_(SOCKET Socket);
 void osl_destroySocketImpl_(oslSocket pImpl);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/osl/w32/tempfile.cxx b/sal/osl/w32/tempfile.cxx
index 3128fb3..3c2f10c 100644
--- a/sal/osl/w32/tempfile.cxx
+++ b/sal/osl/w32/tempfile.cxx
@@ -24,8 +24,8 @@
 #include "osl/file.h"
 
 #include <file-impl.hxx>
-#include "file_error.h"
-#include "file_url.h"
+#include "file_error.hxx"
+#include "file_url.hxx"
 #include "path_helper.hxx"
 
 #include "osl/diagnose.h"
diff --git a/sal/osl/w32/thread.cxx b/sal/osl/w32/thread.cxx
index b16e872..3244370 100644
--- a/sal/osl/w32/thread.cxx
+++ b/sal/osl/w32/thread.cxx
@@ -18,7 +18,7 @@
  */
 
 #include "system.h"
-#include <thread.h>
+#include <thread.hxx>
 
 #include <osl/diagnose.h>
 #include <osl/thread.h>
diff --git a/sal/osl/w32/thread.h b/sal/osl/w32/thread.hxx
similarity index 80%
rename from sal/osl/w32/thread.h
rename to sal/osl/w32/thread.hxx
index 2c2b040..542c7b4 100644
--- a/sal/osl/w32/thread.h
+++ b/sal/osl/w32/thread.hxx
@@ -7,27 +7,19 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_THREAD_H
-#define INCLUDED_SAL_OSL_W32_THREAD_H
+#ifndef INCLUDED_SAL_OSL_W32_THREAD_HXX
+#define INCLUDED_SAL_OSL_W32_THREAD_HXX
 
 #include <sal/config.h>
 
 #include <sal/types.h>
 
-#if defined __cplusplus
-extern "C" {
-#endif
-
 void SAL_CALL osl_callThreadKeyCallbackOnThreadDetach(void);
 
 extern DWORD g_dwTLSTextEncodingIndex;
 
 extern CRITICAL_SECTION g_ThreadKeyListCS;
 
-#if defined __cplusplus
-}
-#endif
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git a/sal/osl/w32/time.cxx b/sal/osl/w32/time.cxx
index f3d90a4..11ce615 100644
--- a/sal/osl/w32/time.cxx
+++ b/sal/osl/w32/time.cxx
@@ -20,8 +20,8 @@
 #include <sal/config.h>
 #include "system.h"
 
-#include <filetime.h>
-#include <time.h>
+#include <filetime.hxx>
+#include <time.hxx>
 
 #include <osl/diagnose.h>
 #include <osl/time.h>
diff --git a/sal/osl/w32/time.h b/sal/osl/w32/time.hxx
similarity index 76%
rename from sal/osl/w32/time.h
rename to sal/osl/w32/time.hxx
index 91cb86e..c0ca9d77 100644
--- a/sal/osl/w32/time.h
+++ b/sal/osl/w32/time.hxx
@@ -7,21 +7,13 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_SAL_OSL_W32_TIME_H
-#define INCLUDED_SAL_OSL_W32_TIME_H
+#ifndef INCLUDED_SAL_OSL_W32_TIME_HXX
+#define INCLUDED_SAL_OSL_W32_TIME_HXX
 
 #include <sal/config.h>
 
-#if defined __cplusplus
-extern "C" {
-#endif
-
 void sal_initGlobalTimer(void);
 
-#if defined __cplusplus
-}
-#endif
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to