From 61a6a2bec0147e376e8661bd5d92f48acb5921d4 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Sat, 2 Nov 2013 23:40:09 +0100 Subject: [PATCH] Mark signatures.xml version GLXmlParser now explicitly marks its output with version="2", while the older .spec parsers produce version="1" signatures. The binding generator uses the newer API to support multiple apinames in the same file. --- Source/Converter/Main.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Converter/Main.cs b/Source/Converter/Main.cs index f2042f2f..c75b8a91 100644 --- a/Source/Converter/Main.cs +++ b/Source/Converter/Main.cs @@ -1,4 +1,4 @@ -// +// // Copyright (C) 2009 the Open Toolkit (http://www.opentk.com) // // Permission is hereby granted, free of charge, to any person obtaining @@ -140,7 +140,8 @@ namespace CHeaderToXML using (var writer = XmlWriter.Create(out_stream, settings)) { - var output = new XElement("signatures"); + var output = new XElement("signatures", + new XAttribute("version", parser is GLXmlParser ? "2" : "1")); foreach (var api in sigs.SelectMany(s => s)) { output.Add(