* CppSpecWriter.cs: Added inclusion guards to gldefs++ header.

This commit is contained in:
the_fiddler 2010-12-06 00:50:36 +00:00
parent 1ba7a853a4
commit 9d85ba0f98

View file

@ -72,6 +72,10 @@ namespace Bind
using (BindStreamWriter sw = new BindStreamWriter(temp_header_file))
{
sw.WriteLine("#ifndef GLDEFPP_H");
sw.WriteLine("#define GLDEFPP_H");
sw.WriteLine("#pragma once");
WriteLicense(sw);
sw.WriteLine("namespace {0}", Settings.OutputNamespace);
@ -89,6 +93,8 @@ namespace Bind
sw.Unindent();
sw.WriteLine("}");
sw.WriteLine("#endif");
}
using (BindStreamWriter sw = new BindStreamWriter(temp_cpp_file))