<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/070b63433b8332d900ef9d4dcff16689af9c4ab2">https://github.com/macports/macports-legacy-support/commit/070b63433b8332d900ef9d4dcff16689af9c4ab2</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 070b634 fix errors with newer compilers
</span>070b634 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 070b63433b8332d900ef9d4dcff16689af9c4ab2
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sat Oct 15 20:58:40 2022 -0700
<span style='display:block; white-space:pre;color:#404040;'> fix errors with newer compilers
</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/65998
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> test_sincos generates warnings if stdio.h is included before math.h
</span>---
src/macports_legacy_realpath.c | 6 +++---
test/test_sincos.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports_legacy_realpath.c b/src/macports_legacy_realpath.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 1309b02..a7e656d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports_legacy_realpath.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports_legacy_realpath.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,9 +24,9 @@
</span> #include <stdlib.h>
#include <dlfcn.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-char *realpath(const char __restrict *stringsearch, char __restrict *buffer)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+char *realpath(const char * __restrict stringsearch, char * __restrict buffer)
</span> {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- char *(*real_realpath)(const char __restrict *, char __restrict *);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *(*real_realpath)(const char * __restrict, char * __restrict);
</span> #if (__DARWIN_UNIX03 && !defined(_POSIX_C_SOURCE)) || defined(_DARWIN_C_SOURCE) || defined(_DARWIN_BETTER_REALPATH)
real_realpath = dlsym(RTLD_NEXT, "realpath$DARWIN_EXTSN");
# else
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,6 +49,6 @@ char *realpath(const char __restrict *stringsearch, char __restrict *buffer)
</span> }
/* compatibility function so code does not have to be recompiled */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-char *macports_legacy_realpath(const char __restrict *stringsearch, char __restrict *buffer) { return realpath(stringsearch, buffer); }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+char *macports_legacy_realpath(const char * __restrict stringsearch, char * __restrict buffer) { return realpath(stringsearch, buffer); }
</span>
#endif /*__MP_LEGACY_SUPPORT_REALPATH_WRAP__*/
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/test/test_sincos.c b/test/test_sincos.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 5f26e33..9ade3c8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/test/test_sincos.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/test/test_sincos.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,8 +15,8 @@
</span> * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#include <stdio.h>
</span> #include <math.h>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#include <stdio.h>
</span>
int main() {
</pre><pre style='margin:0'>
</pre>