mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 15:05:41 +00:00
* CppSpecWriter.cs: Added inclusion guards to gldefs++ header.
This commit is contained in:
parent
d6484bd630
commit
b74d3339a3
|
@ -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