summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/w32/file-impl.hxx2
-rw-r--r--sal/osl/w32/file.cxx1
-rw-r--r--sal/osl/w32/file_dirvol.cxx4
-rw-r--r--sal/osl/w32/nlsupport.cxx4
-rw-r--r--sal/osl/w32/pipe.cxx4
-rw-r--r--sal/osl/w32/socket.cxx4
6 files changed, 10 insertions, 9 deletions
diff --git a/sal/osl/w32/file-impl.hxx b/sal/osl/w32/file-impl.hxx
index 4db7b3eb257b..550a22dbf6f9 100644
--- a/sal/osl/w32/file-impl.hxx
+++ b/sal/osl/w32/file-impl.hxx
@@ -18,7 +18,7 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-extern "C" oslFileHandle SAL_CALL osl_createFileHandleFromOSHandle(
+extern "C" oslFileHandle osl_createFileHandleFromOSHandle(
HANDLE hFile, sal_uInt32 uFlags);
#endif
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx
index 78dfaa046939..c8b001e9847d 100644
--- a/sal/osl/w32/file.cxx
+++ b/sal/osl/w32/file.cxx
@@ -25,6 +25,7 @@
#include <sal/log.hxx>
#include <o3tl/char16_t2wchar_t.hxx>
+#include "file-impl.hxx"
#include "file_url.hxx"
#include "file_error.hxx"
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index 268c32a75dda..5e630c95a5ee 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -367,7 +367,7 @@ static HANDLE WINAPI OpenDirectory( rtl_uString* pPath)
return static_cast<HANDLE>(pDirectory);
}
-BOOL WINAPI EnumDirectory(HANDLE hDirectory, LPWIN32_FIND_DATAW pFindData)
+static BOOL WINAPI EnumDirectory(HANDLE hDirectory, LPWIN32_FIND_DATAW pFindData)
{
BOOL fSuccess = FALSE;
LPDIRECTORY pDirectory = static_cast<LPDIRECTORY>(hDirectory);
@@ -1149,7 +1149,7 @@ static inline bool is_floppy_A_present()
static inline bool is_floppy_B_present()
{ return (GetLogicalDrives() & 2); }
-bool is_floppy_volume_mount_point(const rtl::OUString& path)
+static bool is_floppy_volume_mount_point(const rtl::OUString& path)
{
// determines if a volume mount point shows to a floppy
// disk by comparing the unique volume names
diff --git a/sal/osl/w32/nlsupport.cxx b/sal/osl/w32/nlsupport.cxx
index d79d49bdd2f5..10888b9d6915 100644
--- a/sal/osl/w32/nlsupport.cxx
+++ b/sal/osl/w32/nlsupport.cxx
@@ -57,7 +57,7 @@ static DWORD g_dwTLSLocaleEncId = DWORD(-1);
* callback function test
*****************************************************************************/
-BOOL CALLBACK EnumLocalesProcW( LPWSTR lpLocaleStringW )
+static BOOL CALLBACK EnumLocalesProcW( LPWSTR lpLocaleStringW )
{
/* check params received via TLS */
EnumLocalesParams * params = static_cast<EnumLocalesParams *>(TlsGetValue( g_dwTLSLocaleEncId ));
@@ -111,7 +111,7 @@ BOOL CALLBACK EnumLocalesProcW( LPWSTR lpLocaleStringW )
return TRUE;
}
-rtl_TextEncoding GetTextEncodingFromLCID( LCID localeId )
+static rtl_TextEncoding GetTextEncodingFromLCID( LCID localeId )
{
rtl_TextEncoding Encoding = RTL_TEXTENCODING_DONTKNOW;
WCHAR ansiCP[6];
diff --git a/sal/osl/w32/pipe.cxx b/sal/osl/w32/pipe.cxx
index 92ec4f918354..2e469b93e8c5 100644
--- a/sal/osl/w32/pipe.cxx
+++ b/sal/osl/w32/pipe.cxx
@@ -59,7 +59,7 @@ struct oslPipeImpl
bool m_bClosed;
};
-oslPipe osl_createPipeImpl(void)
+static oslPipe osl_createPipeImpl(void)
{
oslPipe pPipe;
@@ -78,7 +78,7 @@ oslPipe osl_createPipeImpl(void)
return pPipe;
}
-void osl_destroyPipeImpl(oslPipe pPipe)
+static void osl_destroyPipeImpl(oslPipe pPipe)
{
if (pPipe)
{
diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx
index e25e35cbdc24..130bdcdb9f05 100644
--- a/sal/osl/w32/socket.cxx
+++ b/sal/osl/w32/socket.cxx
@@ -224,7 +224,7 @@ struct LeakWarning
static LeakWarning socketWarning;
#endif
-oslSocket createSocketImpl(SOCKET Socket)
+static oslSocket createSocketImpl(SOCKET Socket)
{
oslSocket pSockImpl = static_cast<oslSocket>(rtl_allocateZeroMemory( sizeof(struct oslSocketImpl)));
pSockImpl->m_Socket = Socket;
@@ -232,7 +232,7 @@ oslSocket createSocketImpl(SOCKET Socket)
return pSockImpl;
}
-void destroySocketImpl(oslSocketImpl *pImpl)
+static void destroySocketImpl(oslSocketImpl *pImpl)
{
if (pImpl)
{