From 226eb1081891777c75a108e301e98a6ff5d6ca43 Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Wed, 15 Jun 2022 13:12:31 -0700 Subject: [PATCH] Add BEGIN_TIER1_NAMESPACE around CUtlBuffer code This is to help avoid name collisions when static linking. (See 53bff2cc0dbac6f44a4b0bd48b9d0c4d52f310d6) P4:7324330 --- src/tier1/utlbuffer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tier1/utlbuffer.cpp b/src/tier1/utlbuffer.cpp index 0286327d..00dfd58c 100644 --- a/src/tier1/utlbuffer.cpp +++ b/src/tier1/utlbuffer.cpp @@ -17,6 +17,7 @@ // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" +BEGIN_TIER1_NAMESPACE //----------------------------------------------------------------------------- // Character conversions for C strings @@ -1806,4 +1807,6 @@ double CUtlBuffer::GetDouble() double d; GET_TYPE( double, d, "%f" ); return d; -} \ No newline at end of file +} + +END_TIER1_NAMESPACE