<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/f0f91bd9c6f15a3736bf96744153bbdb465aac83">https://github.com/macports/macports-legacy-support/commit/f0f91bd9c6f15a3736bf96744153bbdb465aac83</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f0f91bd9c6f15a3736bf96744153bbdb465aac83
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Mon Jun 24 15:23:23 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> Remove obsolete SDK flags.
</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;'> Builds and passes tests on all platforms.
</span>---
include/_macports_extras/sdkversion.h | 48 ++---------------------------------
manual_tests/headerinfo.c | 20 ---------------
2 files changed, 2 insertions(+), 66 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/_macports_extras/sdkversion.h b/include/_macports_extras/sdkversion.h
</span><span style='display:block; white-space:pre;color:#808080;'>index b02c350..ac765c6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/_macports_extras/sdkversion.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/_macports_extras/sdkversion.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -83,36 +83,8 @@
</span>
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-/*
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * Set up our flags here for any needed version thresholds.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * All flags defined here should also provide reports of their values
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * in manual_tests/headerinfo.c.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_5_SDK 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_5_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#if MAC_OS_X_VERSION_MAX_ALLOWED < 101000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_10_SDK 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_10_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#if MAC_OS_X_VERSION_MAX_ALLOWED < 101400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_14_SDK 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_14_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#if MAC_OS_X_VERSION_MAX_ALLOWED < 140000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_14_0_SDK 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_14_0_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Define the major SDK version via an if/elif chain. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Add new entries as needed. */
</span>
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
#define __MPLS_SDK_MAJOR 1040
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -173,22 +145,6 @@
</span>
/* If non-Apple, just assume an "infinitely late" SDK */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#ifndef __MPLS_PRE_10_5_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_5_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#ifndef __MPLS_PRE_10_10_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_10_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#ifndef __MPLS_PRE_10_14_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_10_14_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#ifndef __MPLS_PRE_14_0_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define __MPLS_PRE_14_0_SDK 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> #ifndef __MPLS_SDK_MAJOR
#define __MPLS_SDK_MAJOR 999999
#endif
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/manual_tests/headerinfo.c b/manual_tests/headerinfo.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 9c37757..5fc1a56 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/manual_tests/headerinfo.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/manual_tests/headerinfo.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,26 +59,6 @@ print_defs(void)
</span> #else
PRINT_UNDEF(__MPLS_SDK_MAJOR);
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef __MPLS_PRE_10_5_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_VAR(__MPLS_PRE_10_5_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_UNDEF(__MPLS_PRE_10_5_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef __MPLS_PRE_10_10_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_VAR(__MPLS_PRE_10_10_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_UNDEF(__MPLS_PRE_10_10_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef __MPLS_PRE_10_14_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_VAR(__MPLS_PRE_10_14_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_UNDEF(__MPLS_PRE_10_14_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef __MPLS_PRE_14_0_SDK
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_VAR(__MPLS_PRE_14_0_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PRINT_UNDEF(__MPLS_PRE_14_0_SDK);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span> }
/* Do this afterward, since it might influence the definitions. */
</pre><pre style='margin:0'>
</pre>