diff --git a/string/embed/nsEmbedString.cpp b/string/embed/nsEmbedString.cpp index a13cfde5373..1783e236a11 100644 --- a/string/embed/nsEmbedString.cpp +++ b/string/embed/nsEmbedString.cpp @@ -459,6 +459,8 @@ nsEmbedCString::GrowCapacity(size_type aNewCapacity) // constructors of nsDependentSubstring work in embed builds. // See bug 196506 +#ifndef nsReadableUtils_h___ + template class CalculateLength { public: @@ -498,3 +500,5 @@ Distance( const nsACString::const_iterator& aStart, const nsACString::const_iter { return Distance_Impl(aStart, aEnd); } + +#endif // !defined(nsReadableUtils_h___) diff --git a/xpcom/string/embed/nsEmbedString.cpp b/xpcom/string/embed/nsEmbedString.cpp index a13cfde5373..1783e236a11 100644 --- a/xpcom/string/embed/nsEmbedString.cpp +++ b/xpcom/string/embed/nsEmbedString.cpp @@ -459,6 +459,8 @@ nsEmbedCString::GrowCapacity(size_type aNewCapacity) // constructors of nsDependentSubstring work in embed builds. // See bug 196506 +#ifndef nsReadableUtils_h___ + template class CalculateLength { public: @@ -498,3 +500,5 @@ Distance( const nsACString::const_iterator& aStart, const nsACString::const_iter { return Distance_Impl(aStart, aEnd); } + +#endif // !defined(nsReadableUtils_h___)