From 2a805c98cd8c72a49bcdec2e9c8b7999a22ed475 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Sat, 27 Jul 2019 11:03:39 -0500 Subject: Visibility fixes for xlC --- cpp/src/IceSSL/Util.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src/IceSSL/Util.cpp') diff --git a/cpp/src/IceSSL/Util.cpp b/cpp/src/IceSSL/Util.cpp index 294640565a5..b0216df5bc7 100755 --- a/cpp/src/IceSSL/Util.cpp +++ b/cpp/src/IceSSL/Util.cpp @@ -118,7 +118,12 @@ IceSSL::readFile(const string& file, vector& buffer) } is.seekg(0, is.end); +#ifdef __IBMCPP__ + // xlC bug. See src/Ice/LoggerI.cpp + buffer.resize(static_cast(is.rdbuf()->pubseekoff(0, is.cur, is.in))); +#else buffer.resize(static_cast(is.tellg())); +#endif is.seekg(0, is.beg); if(!buffer.empty()) -- cgit v1.2.3