Kaydet (Commit) ca4dede1 authored tarafından Katarina Behrens's avatar Katarina Behrens

Add overloaded read/send funcs for uint64_t (conditionally)

otherwise build fails on 32bit platforms as multiple matching
overloaded func are found. Thanks _rene_ and mst_ for helping
me to figure this out

Change-Id: Ief4571ad735ad4efea9ddc70daea45885e5954c7
Reviewed-on: https://gerrit.libreoffice.org/55474Reviewed-by: 's avatarRene Engelhard <rene@debian.org>
Tested-by: 's avatarRene Engelhard <rene@debian.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
Tested-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 175a1d13
......@@ -100,6 +100,14 @@ inline void readIpcArg(std::istream& stream, sal_uIntPtr& value)
stream.ignore(); // skip space
}
#if SAL_TYPES_SIZEOFPOINTER == 4
inline void readIpcArg(std::istream& stream, uint64_t& value)
{
stream >> value;
stream.ignore(); // skip space
}
#endif
inline void readIpcArgs(std::istream& /*stream*/)
{
// end of arguments, nothing to do
......@@ -135,6 +143,10 @@ inline void sendIpcArg(std::ostream& stream, sal_Int16 value) { stream << value
inline void sendIpcArg(std::ostream& stream, sal_uIntPtr value) { stream << value << ' '; }
#if SAL_TYPES_SIZEOFPOINTER == 4
inline void sendIpcArg(std::ostream& stream, uint64_t value) { stream << value << ' '; }
#endif
inline void sendIpcArgsImpl(std::ostream& stream)
{
// end of arguments, flush stream
......
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