From 1eb54bcf4f605946c0bf36b2dd143c1058c8bd44 Mon Sep 17 00:00:00 2001 From: Kp Date: Fri, 29 Jan 2016 04:05:47 +0000 Subject: [PATCH] Fix clang build of CGameCfg clang is confused by the use of a class named dcx. Move the declaration into a namespace{} block to avoid this. --- similar/main/config.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/similar/main/config.cpp b/similar/main/config.cpp index 24b47bb7a..5966888af 100644 --- a/similar/main/config.cpp +++ b/similar/main/config.cpp @@ -46,7 +46,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include "compiler-make_unique.h" -CCfg dcx::CGameCfg; +namespace dcx { +CCfg CGameCfg; +} namespace dsx { Cfg GameCfg;