<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/101193eb10fd5c7f9caeff7f29eb2c671ca86721">https://github.com/macports/macports-legacy-support/commit/101193eb10fd5c7f9caeff7f29eb2c671ca86721</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 101193e wrap gliDispatch.h to not include glext.h
</span>101193e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 101193eb10fd5c7f9caeff7f29eb2c671ca86721
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sat Feb 6 19:09:50 2021 -0800
<span style='display:block; white-space:pre;color:#404040;'> wrap gliDispatch.h to not include glext.h
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> /* in SDKs < 10.7 this Apple header does not include glext.h
</span><span style='display:block; white-space:pre;color:#404040;'> * including it causes redefinition errors that are hard to
</span><span style='display:block; white-space:pre;color:#404040;'> * overcome in ports, eg mesa so we block the loading of
</span><span style='display:block; white-space:pre;color:#404040;'> * glext.h here for consistent behaviour with newer systems
</span><span style='display:block; white-space:pre;color:#404040;'> *
</span><span style='display:block; white-space:pre;color:#404040;'> * Note: this header has no specific blocker as it may be called
</span><span style='display:block; white-space:pre;color:#404040;'> * multiple times and should have the same effect each time
</span><span style='display:block; white-space:pre;color:#404040;'> */
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/62203
</span>---
README.md | 5 +++++
include/OpenGL/gliDispatch.h | 43 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/README.md b/README.md
</span><span style='display:block; white-space:pre;color:#808080;'>index 8954adc..4f4e7cc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/README.md
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/README.md
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -143,6 +143,11 @@ Wrapped headers and replaced functions are:
</span> and <code>unlinkat</code> functions</td>
<td>OSX10.9</td>
</tr>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ <tr>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <td>Wraps <code>gliDispatch.h</code> to prevent including
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <code>glext.h</code> and match behaviour of newer systems.</td>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <td>OSX10.6</td>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </tr>
</span> <tr>
<td>Wraps <code>sysconf</code> to support <code>_SC_NPROCESSORS_CONF</code> and
<code>_SC_NPROCESSORS_ONLN</code></td>
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/OpenGL/gliDispatch.h b/include/OpenGL/gliDispatch.h
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c98c62b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/OpenGL/gliDispatch.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,43 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Copyright (c) 2021 Ken Cunningham <kencu@macports.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Permission to use, copy, modify, and distribute this software for any
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * purpose with or without fee is hereby granted, provided that the above
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * copyright notice and this permission notice appear in all copies.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* in SDKs < 10.7 this Apple header does not include glext.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * including it causes redefinition errors that are hard to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * overcome in ports, eg mesa so we block the loading of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * glext.h here for consistent behaviour with newer systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Note: this header has no specific blocker as it may be called
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * multiple times and should have the same effect each time
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ifdef __glext_h_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# define MACPORTS_LEGACY_SAVED_GLEXT_SET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# define __glext_h_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include_next <OpenGL/gliDispatch.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ifdef MACPORTS_LEGACY_SAVED_GLEXT_SET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# undef MACPORTS_LEGACY_SAVED_GLEXT_SET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# undef __glext_h_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif
</span></pre><pre style='margin:0'>
</pre>