From 050dad0ce35207a4ac1562175e853590ad9b7681 Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Wed, 7 Nov 2007 22:55:27 +0000 Subject: merge svn+ssh://steve@svn/svn/linden/branches/viewer-cleanup-3 -r 73026:73079 --- indra/llcommon/llsd.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'indra/llcommon/llsd.cpp') diff --git a/indra/llcommon/llsd.cpp b/indra/llcommon/llsd.cpp index 305531b9cc..829ea25e38 100644 --- a/indra/llcommon/llsd.cpp +++ b/indra/llcommon/llsd.cpp @@ -36,11 +36,23 @@ #include "../llmath/llmath.h" #include "llformat.h" +#ifndef LL_RELEASE_FOR_DOWNLOAD +#define NAME_UNNAMED_NAMESPACE +#endif + +#ifdef NAME_UNNAMED_NAMESPACE +namespace LLSDUnnamedNamespace { +#else namespace { +#endif class ImplMap; class ImplArray; } +#ifdef NAME_UNNAMED_NAMESPACE +using namespace LLSDUnnamedNamespace; +#endif + class LLSD::Impl /**< This class is the abstract base class of the implementation of LLSD It provides the reference counting implementation, and the default @@ -125,7 +137,11 @@ public: static U32 sOutstandingCount; }; +#ifdef NAME_UNNAMED_NAMESPACE +namespace LLSDUnnamedNamespace { +#else namespace { +#endif template class ImplBase : public LLSD::Impl ///< This class handles most of the work for a subclass of Impl @@ -632,7 +648,11 @@ U32 LLSD::Impl::sOutstandingCount = 0; +#ifdef NAME_UNNAMED_NAMESPACE +namespace LLSDUnnamedNamespace { +#else namespace { +#endif inline LLSD::Impl& safe(LLSD::Impl* impl) { return LLSD::Impl::safe(impl); } -- cgit v1.2.3