Skip to content

apple: sync up version guard macro style - #23133

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:macos-mac
Closed

vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:macos-mac

Conversation

@vszakats

@vszakats vszakats commented Sep 28, 2026 •

Copy link
Copy Markdown
Member
  • lib/vtls/apple: use double underscores for MAC_OS_X_VERSION_* macros
    to sync with rest of code.
    The difference (if any) is undocumented and muddy. iPhone/TV/etc OS
    macros only come in __-prefixed flavor; use it for all.
  • lib/vtls/apple: use irregular indent to match rest of code.
    (and to improve readability)
  • lib/vtls/apple: use irregular \ alignment to match rest of code.
  • lib: drop parentheses to match lib/vtls/apple.

@vszakats vszakats added tidy-up appleOS specific to an Apple operating system labels Sep 28, 2026
@vszakats
vszakats requested a balanced review from Copilot September 28, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The changes are consistent, narrowly scoped, and preserve preprocessor condition semantics.

Review effort: Balanced
Findings: None

What changed in this PR

Standardizes Apple SDK version guards across TLS and digest implementations.

Changes:

  • Uses double-underscore macOS version macros in Apple SecTrust guards.
  • Aligns formatting and removes redundant condition parentheses.
File Description
lib/​vtls/​apple.c Standardizes Apple availability guards and alignment.
lib/​sha256.c Removes redundant guard parentheses.
lib/​md5.c Removes redundant guard parentheses.
lib/​md4.c Removes redundant guard parentheses.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vszakats vszakats closed this in c492678 Sep 28, 2026
@vszakats
vszakats deleted the macos-mac branch September 28, 2026 09:52
vszakats added a commit that referenced this pull request Sep 28, 2026
Drop `.0` suffix. Also to sync with lib/vtls/apple.c.

Follow-up to c492678 #23133

Closes #23150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system tidy-up

Development

Successfully merging this pull request may close these issues.

2 participants