On 30 October 2012 10:42, Paul Berry <span dir="ltr"><<a href="mailto:stereotype441@gmail.com" target="_blank">stereotype441@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This patch adds the usual boilerplate (copyright notice and guards<br>
against redundant inclusion) to es1_conversion.h. It also moves the<br>
definition of GL_APIENTRY from es1_conversion.c.<br></blockquote><div><br>Ian recommended that instead of using an Intel copyright here, I use the copyright from src/mesa/main/es_generator.py (the script that used to generate this file). I'll change that.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This allows es1_conversion.h to be safely included from other .c files.<br>
---<br>
src/mesa/main/es1_conversion.c | 4 ----<br>
src/mesa/main/es1_conversion.h | 31 +++++++++++++++++++++++++++++++<br>
2 files changed, 31 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/src/mesa/main/es1_conversion.c b/src/mesa/main/es1_conversion.c<br>
index ae3c5ba..758fb1a 100644<br>
--- a/src/mesa/main/es1_conversion.c<br>
+++ b/src/mesa/main/es1_conversion.c<br>
@@ -29,10 +29,6 @@<br>
#include "main/drawtex.h"<br>
#include "vbo/vbo.h"<br>
<br>
-#ifndef GL_APIENTRY<br>
-#define GL_APIENTRY GLAPIENTRY<br>
-#endif<br>
-<br>
#include "main/es1_conversion.h"<br>
<br>
void GL_APIENTRY<br>
diff --git a/src/mesa/main/es1_conversion.h b/src/mesa/main/es1_conversion.h<br>
index ece3893..00de70b 100644<br>
--- a/src/mesa/main/es1_conversion.h<br>
+++ b/src/mesa/main/es1_conversion.h<br>
@@ -1,3 +1,33 @@<br>
+/*<br>
+ * Copyright © 2012 Intel Corporation<br>
+ *<br>
+ * Permission is hereby granted, free of charge, to any person obtaining a<br>
+ * copy of this software and associated documentation files (the "Software"),<br>
+ * to deal in the Software without restriction, including without limitation<br>
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,<br>
+ * and/or sell copies of the Software, and to permit persons to whom the<br>
+ * Software is furnished to do so, subject to the following conditions:<br>
+ *<br>
+ * The above copyright notice and this permission notice (including the next<br>
+ * paragraph) shall be included in all copies or substantial portions of the<br>
+ * Software.<br>
+ *<br>
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL<br>
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br>
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS<br>
+ * IN THE SOFTWARE.<br>
+ */<br>
+<br>
+#ifndef ES1_CONVERSION_H<br>
+#define ES1_CONVERSION_H<br>
+<br>
+#ifndef GL_APIENTRY<br>
+#define GL_APIENTRY GLAPIENTRY<br>
+#endif<br>
+<br>
void GL_APIENTRY<br>
_es_AlphaFuncx(GLenum func, GLclampx ref);<br>
<br>
@@ -155,3 +185,4 @@ _es_TexParameterxv(GLenum target, GLenum pname, const GLfixed *params);<br>
void GL_APIENTRY<br>
_es_Translatex(GLfixed x, GLfixed y, GLfixed z);<br>
<br>
+#endif /* ES1_CONVERSION_H */<br>
<span><font color="#888888">--<br>
1.7.12.4<br>
<br>
</font></span></blockquote></div><br>