Commit 050001d6d3e5ec80aefd8987db81431de8fe30cc
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.
| |   |
| 858 | 858 | return (l1 > l2) ? 1 : -1; |
| 859 | 859 | } |
| 860 | 860 | |
| #if OS(SOLARIS) && COMPILER(SUNCC) |
| // Signature must match that of UStringImpl.h, otherwise the linker complains about undefined symbol. |
| bool equal(const UStringImpl* r, const UStringImpl* b) |
| #else |
| 861 | 865 | bool equal(const UString::Rep* r, const UString::Rep* b) |
| #endif |
| 862 | 867 | { |
| 863 | 868 | int length = r->size(); |
| 864 | 869 | if (length != b->size()) |