Commit 050001d6d3e5ec80aefd8987db81431de8fe30cc

  • avatar
  • khansen
  • Fri Feb 05 13:33:26 CET 2010
Fix linking with Sun CC 5.9: undefined symbol JSC::equal(const UStringImpl*,const UStringImpl*)

equal(const UStringImpl*, const UStringImpl*) is declared in UStringImpl.h;
UString.h has typedef UStringImpl Rep;
UString.cpp implements equal(const UString::Rep*, const UString::Rep*).
It compiles just fine, but the linker apparently doesn't see that
UString::Rep and UStringImpl is the same type.
  
858858 return (l1 > l2) ? 1 : -1;
859859}
860860
861#if OS(SOLARIS) && COMPILER(SUNCC)
862// Signature must match that of UStringImpl.h, otherwise the linker complains about undefined symbol.
863bool equal(const UStringImpl* r, const UStringImpl* b)
864#else
861865bool equal(const UString::Rep* r, const UString::Rep* b)
866#endif
862867{
863868 int length = r->size();
864869 if (length != b->size())