From 671530082004aa880b3a0bfb7108bc30c6d97fab Mon Sep 17 00:00:00 2001 From: "Matthew R. Trower" Date: Wed, 13 Jun 2018 22:16:14 -0500 Subject: [PATCH] nsgml: Resolve symbol collision when building with SunStudio 12.1 --- cde/programs/nsgmls/Ptr.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cde/programs/nsgmls/Ptr.h b/cde/programs/nsgmls/Ptr.h index d8f2970a..24baf063 100644 --- a/cde/programs/nsgmls/Ptr.h +++ b/cde/programs/nsgmls/Ptr.h @@ -93,7 +93,14 @@ public: const T &operator*() const { return *Ptr::pointer(); } void swap(ConstPtr &p) { Ptr::swap(p); } using Ptr::isNull; + +#if defined(__SUNPRO_CC) && __SUNPRO_CC == 0x5100 + /* Needed to avoid symbol export collision */ + void clear() { Ptr::clear(); } +#else using Ptr::clear; +#endif + Boolean operator==(const Ptr &p) const { return Ptr::operator==(p); } Boolean operator!=(const Ptr &p) const { return Ptr::operator!=(p); } Boolean operator==(const ConstPtr &p) const { -- 2.25.1