Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4a7474b8b00ab6bfde206d275376e37cb31d14ca
      
https://github.com/WebKit/WebKit/commit/4a7474b8b00ab6bfde206d275376e37cb31d14ca
  Author: Adrian Taylor <[email protected]>
  Date:   2026-05-08 (Fri, 08 May 2026)

  Changed paths:
    M Source/WTF/wtf/BlockPtr.h
    M Source/WTF/wtf/MachSendRightAnnotated.h
    M Source/WTF/wtf/SchedulePair.h
    M Source/WTF/wtf/SoftLinking.h
    M Source/WTF/wtf/WeakObjCPtr.h

  Log Message:
  -----------
  [Swift GTK] Guard Apple-specific WTF headers
https://bugs.webkit.org/show_bug.cgi?id=314072
rdar://176259431

Reviewed by Richard Robinson.

Once we ask Swift on non-Apple platforms to respect WebKit headers, it will
need to start to use the WTF modulemap. That causes it to interpret all headers
listed therein, including those relating to features that only occur on the
Apple platform. Add header guards so that they don't cause compilation problems
on non-Apple platforms.

Alternatives considered:
- Different modulemaps per platform. Obviously more complex.
- Add directives to the modulemap to state that some headers are
  platform-specific. I'm led to believe that the approach in this PR is
  preferred.

Canonical link: https://commits.webkit.org/312898@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to