Bug 180936 - Conditionally forward declare NSMapTable SPI
Summary: Conditionally forward declare NSMapTable SPI
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-12-18 10:50 PST by Daniel Bates
Modified: 2017-12-18 13:24 PST (History)
6 users (show)

See Also:


Attachments
Patch (1.15 KB, patch)
2017-12-18 11:07 PST, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (1.32 KB, patch)
2017-12-18 13:01 PST, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (1.32 KB, patch)
2017-12-18 13:02 PST, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2017-12-18 10:50:55 PST
Remove include of obsolete header NSMapTablePriv.h.
Comment 1 Daniel Bates 2017-12-18 10:51:15 PST
<rdar://problem/35037796>
Comment 2 Daniel Bates 2017-12-18 11:07:09 PST
(In reply to Daniel Bates from comment #0)
> Remove include of obsolete header NSMapTablePriv.h.

Actually, we need to continue including this header for a bit longer.
Comment 3 Daniel Bates 2017-12-18 11:07:55 PST
Created attachment 329655 [details]
Patch
Comment 4 mitz 2017-12-18 12:13:13 PST
Comment on attachment 329655 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=329655&action=review

> Source/WTF/wtf/spi/cocoa/NSMapTableSPI.h:28
> +#if USE(APPLE_INTERNAL_SDK) && PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED < 120000

This has the effect of using the below declarations in the __IPHONE_OS_VERSION_MAX_ALLOWED >= 120000 case. But I think we shouldn’t make those declarations in that case, because they are already bade in NSMapTable.h, which we import above. My understanding is that the entire SPI header is only needed for older SDK versions (which don’t have the declarations in their NSMapTable.h), so it would be nice to express that with guards around the entire thing.
Comment 5 Daniel Bates 2017-12-18 13:01:51 PST
Created attachment 329662 [details]
Patch
Comment 6 Daniel Bates 2017-12-18 13:02:57 PST
Created attachment 329663 [details]
Patch
Comment 7 Daniel Bates 2017-12-18 13:23:59 PST
Comment on attachment 329663 [details]
Patch

Clearing flags on attachment: 329663

Committed r226073: <https://trac.webkit.org/changeset/226073>
Comment 8 Daniel Bates 2017-12-18 13:24:00 PST
All reviewed patches have been landed.  Closing bug.