<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-legacy-support.

</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/09a9f0ae331537ea47b9c943b9a0c9a94699ce1f">https://github.com/macports/macports-legacy-support/commit/09a9f0ae331537ea47b9c943b9a0c9a94699ce1f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 09a9f0ae331537ea47b9c943b9a0c9a94699ce1f
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Thu May 8 00:14:30 2025 -0700

<span style='display:block; white-space:pre;color:#404040;'>    MacTypes.h: Fix for allheaders test on <10.8.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Prior to 10.8, MacTypes.h isn't a normal system include, and the
</span><span style='display:block; white-space:pre;color:#404040;'>    include_next may fail.  But some "real" uses may have the appropriate
</span><span style='display:block; white-space:pre;color:#404040;'>    extra include path, so we only suppress the include_next on <10.8
</span><span style='display:block; white-space:pre;color:#404040;'>    when in header-test mode.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'>    Passes all tests, including new allheaders tests.
</span>---
 include/MacTypes.h | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/MacTypes.h b/include/MacTypes.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 56219ae..4ed09a7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/MacTypes.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/MacTypes.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,5 @@
</span> /*
<span style='display:block; white-space:pre;background:#ffe0e0;'>- * Copyright (c) 2024 Frederick H. G. Wright II <fw@fwright.net>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Copyright (c) 2025 Frederick H. G. Wright II <fw@fwright.net>
</span>  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,12 +33,12 @@
</span> /* Determine the true __has_include() status (if not already done) */
 #include <sys/cdefs.h>
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/* See if __has_include() is missing or lying */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#if __MPLS_HAS_INCLUDE_STATUS <= 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> /* Determine the SDK version */
 #include <_macports_extras/sdkversion.h>
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+/* See if __has_include() is missing or lying */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#if __MPLS_HAS_INCLUDE_STATUS <= 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> #if __MPLS_SDK_MAJOR >= 150000 && __MPLS_SDK_MAJOR < 160000
   #undef __has_include
   #define __has_include(x) 1
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,8 +47,10 @@
</span> 
 #endif /* __has_include undef */
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/* Include the primary system MacTypes.h */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system MacTypes.h (non-system in <10.8) */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#if __MPLS_SDK_MAJOR >= 1080 || !defined(__MPLS_HEADER_TEST__)
</span> #include_next <MacTypes.h>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif
</span> 
 #ifdef __MPLS_HAS_INCLUDE_CHANGED
   #undef __has_include
</pre><pre style='margin:0'>

</pre>