Kaydet (Commit) e814dacc authored tarafından Stephan Bergmann's avatar Stephan Bergmann

readwrite_helper.c -> readwrite_helper.cxx

Change-Id: I6d9f43a18e13cb291cb678b6faeeed7c0ec9de1a
üst df451d6a
...@@ -48,11 +48,10 @@ else ...@@ -48,11 +48,10 @@ else
$(eval $(call gb_Library_add_cobjects,jpipe, \ $(eval $(call gb_Library_add_cobjects,jpipe, \
jurt/source/pipe/com_sun_star_lib_connections_pipe_PipeConnection \ jurt/source/pipe/com_sun_star_lib_connections_pipe_PipeConnection \
jurt/source/pipe/staticsalhack_c \
)) ))
$(eval $(call gb_Library_add_exception_objects,jpipe, \ $(eval $(call gb_Library_add_exception_objects,jpipe, \
jurt/source/pipe/staticsalhack_cxx \ jurt/source/pipe/staticsalhack \
)) ))
$(eval $(call gb_Library_add_defs,jpipe, \ $(eval $(call gb_Library_add_defs,jpipe, \
......
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include <staticsalhack.h> #define DISABLE_DYNLOADING
#define FORCE_SYSALLOC
#define NO_CHILD_PROCESSES
#undef SAL_LOG_INFO
#undef SAL_LOG_WARN
#include <sal/rtl/string.cxx> #include <sal/rtl/string.cxx>
#undef IMPL_RTL_EMPTYSTRING #undef IMPL_RTL_EMPTYSTRING
...@@ -34,6 +38,7 @@ ...@@ -34,6 +38,7 @@
#include <sal/osl/unx/process.cxx> #include <sal/osl/unx/process.cxx>
#include <sal/osl/unx/process_impl.cxx> #include <sal/osl/unx/process_impl.cxx>
#include <sal/osl/unx/profile.cxx> #include <sal/osl/unx/profile.cxx>
#include <sal/osl/unx/readwrite_helper.cxx>
#include <sal/osl/unx/security.cxx> #include <sal/osl/unx/security.cxx>
#include <sal/osl/unx/thread.cxx> #include <sal/osl/unx/thread.cxx>
#include <sal/osl/unx/uunxapi.cxx> #include <sal/osl/unx/uunxapi.cxx>
......
/* -*- 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/.
*/
#define DISABLE_DYNLOADING
#define FORCE_SYSALLOC
#define NO_CHILD_PROCESSES
#undef SAL_LOG_INFO
#undef SAL_LOG_WARN
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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/.
*/
#include <staticsalhack.h>
#include <sal/osl/unx/readwrite_helper.c>
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -167,13 +167,13 @@ $(eval $(call gb_Library_add_exception_objects,sal,\ ...@@ -167,13 +167,13 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
sal/osl/unx/process \ sal/osl/unx/process \
sal/osl/unx/process_impl \ sal/osl/unx/process_impl \
sal/osl/unx/profile \ sal/osl/unx/profile \
sal/osl/unx/readwrite_helper \
sal/osl/unx/security \ sal/osl/unx/security \
sal/osl/unx/tempfile \ sal/osl/unx/tempfile \
sal/osl/unx/thread \ sal/osl/unx/thread \
$(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \ $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \
)) ))
$(eval $(call gb_Library_add_cobjects,sal,\ $(eval $(call gb_Library_add_cobjects,sal,\
sal/osl/unx/readwrite_helper \
sal/osl/unx/socket \ sal/osl/unx/socket \
sal/osl/unx/system \ sal/osl/unx/system \
sal/osl/unx/time \ sal/osl/unx/time \
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
sal_Bool safeWrite(int fd, void* data, sal_uInt32 dataSize) sal_Bool safeWrite(int fd, void* data, sal_uInt32 dataSize)
{ {
sal_Int32 nToWrite = dataSize; sal_Int32 nToWrite = dataSize;
unsigned char* dataToWrite = data; unsigned char* dataToWrite = static_cast<unsigned char *>(data);
// Check for overflow as we convert a signed to an unsigned. // Check for overflow as we convert a signed to an unsigned.
OSL_ASSERT(dataSize == (sal_uInt32)nToWrite); OSL_ASSERT(dataSize == (sal_uInt32)nToWrite);
...@@ -40,7 +40,7 @@ sal_Bool safeWrite(int fd, void* data, sal_uInt32 dataSize) ...@@ -40,7 +40,7 @@ sal_Bool safeWrite(int fd, void* data, sal_uInt32 dataSize)
sal_Bool safeRead( int fd, void* buffer, sal_uInt32 count ) sal_Bool safeRead( int fd, void* buffer, sal_uInt32 count )
{ {
sal_Int32 nToRead = count; sal_Int32 nToRead = count;
unsigned char* bufferForReading = buffer; unsigned char* bufferForReading = static_cast<unsigned char *>(buffer);
// Check for overflow as we convert a signed to an unsigned. // Check for overflow as we convert a signed to an unsigned.
OSL_ASSERT(count == (sal_uInt32)nToRead); OSL_ASSERT(count == (sal_uInt32)nToRead);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment