From 9d85ba0f98b10014c9debb5519b7fb12204ba8fc Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 6 Dec 2010 00:50:36 +0000 Subject: [PATCH] * CppSpecWriter.cs: Added inclusion guards to gldefs++ header. --- Source/Bind/CppSpecWriter.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Bind/CppSpecWriter.cs b/Source/Bind/CppSpecWriter.cs index d3b8e624..a0940e9c 100644 --- a/Source/Bind/CppSpecWriter.cs +++ b/Source/Bind/CppSpecWriter.cs @@ -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))