diff options
Diffstat (limited to 'cpp/include/IceUtil')
-rw-r--r-- | cpp/include/IceUtil/Config.h | 2 | ||||
-rw-r--r-- | cpp/include/IceUtil/OutputUtil.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h index 05de38222f9..4fff5035340 100644 --- a/cpp/include/IceUtil/Config.h +++ b/cpp/include/IceUtil/Config.h @@ -18,7 +18,7 @@ // #if defined(__i386) || defined(_M_IX86) || defined (__x86_64) # define ICE_LITTLE_ENDIAN -#elif defined(__sparc) || defined(__sparc__) || defined(__hppa) || defined(__ppc__) +#elif defined(__sparc) || defined(__sparc__) || defined(__hppa) || defined(__ppc__) || defined(_ARCH_COM) # define ICE_BIG_ENDIAN #else # error "Unknown architecture" diff --git a/cpp/include/IceUtil/OutputUtil.h b/cpp/include/IceUtil/OutputUtil.h index 3f95d2ef657..0d718ec838d 100644 --- a/cpp/include/IceUtil/OutputUtil.h +++ b/cpp/include/IceUtil/OutputUtil.h @@ -119,7 +119,7 @@ private: }; template<typename T> -Output& +inline Output& operator<<(Output& out, const T& val) { std::ostringstream s; @@ -129,7 +129,7 @@ operator<<(Output& out, const T& val) } template<typename T> -Output& +inline Output& operator<<(Output& out, const std::vector<T>& val) { for(typename std::vector<T>::const_iterator p = val.begin(); p != val.end(); ++p) @@ -147,7 +147,7 @@ operator<<(Output& out, const std::vector<T>& val) // template<typename T> -Output& +inline Output& operator<<(Output& out, std::vector<T>& val) { for(typename std::vector<T>::const_iterator p = val.begin(); p != val.end(); ++p) @@ -269,7 +269,7 @@ private: }; template<typename T> -XMLOutput& +inline XMLOutput& operator<<(XMLOutput& out, const T& val) { std::ostringstream s; |