* CppSpecWriter.cs: Added inclusion guards to gldefs++ header.
This commit is contained in:
parent
1ba7a853a4
commit
9d85ba0f98
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue