From 0e7f53fb182eaa6a6d5af6fa292a26ceeacb4a9f Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 15 Aug 2013 23:51:58 +0100 Subject: [PATCH] Use the scope resolution operator when referring to native names. --- src/Generator/Generators/CLI/CLIMarshal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CLI/CLIMarshal.cs b/src/Generator/Generators/CLI/CLIMarshal.cs index 72b4900b..2d12804b 100644 --- a/src/Generator/Generators/CLI/CLIMarshal.cs +++ b/src/Generator/Generators/CLI/CLIMarshal.cs @@ -418,7 +418,7 @@ namespace CppSharp.Generators.CLI PrimitiveType primitive; if (decl.Type.Desugar().IsPrimitiveType(out primitive)) { - Context.Return.Write("({0})", typedef.Declaration.Name); + Context.Return.Write("(::{0})", typedef.Declaration.QualifiedOriginalName); } return decl.Type.Visit(this);