From 5b4df1cdaa3378c2abe85c565b4275eb4b093e2a Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 5 Dec 2010 11:32:49 +0000 Subject: [PATCH] * CppSpecWriter.cs: Move 3dfx namespace to T3dfx, since namespaces may not start with a digit. --- Source/Bind/CppSpecWriter.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Bind/CppSpecWriter.cs b/Source/Bind/CppSpecWriter.cs index f1f9184f..bc5035e7 100644 --- a/Source/Bind/CppSpecWriter.cs +++ b/Source/Bind/CppSpecWriter.cs @@ -57,6 +57,14 @@ namespace Bind if (!Directory.Exists(Settings.OutputPath)) Directory.CreateDirectory(Settings.OutputPath); + // Hack: Fix 3dfx extension category so it doesn't start with a digit + if (wrappers.ContainsKey("3dfx")) + { + var three_dee_fx = wrappers["3dfx"]; + wrappers.Remove("3dfx"); + wrappers.Add("T3dfx", three_dee_fx); + } + Settings.DefaultOutputNamespace = "OpenTK"; string temp_header_file = Path.GetTempFileName();