diff --git a/src/pugixml.cpp b/src/pugixml.cpp index bc76b0b..9af6fa4 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -966,10 +966,12 @@ namespace for (size_t i = 0; i < length; ++i) result[i] = endian_swap(data[i]); } +#ifdef PUGIXML_WCHAR_MODE inline void convert_wchar_endian_swap(wchar_t* result, const wchar_t* data, size_t length) { for (size_t i = 0; i < length; ++i) result[i] = static_cast(endian_swap(static_cast::type>(data[i]))); } +#endif } namespace