<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mitz&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add dyldSPI.h for linked on or after checks, and add one for link preview"
   href="https://bugs.webkit.org/show_bug.cgi?id=157401">bug 157401</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #278206 Flags</td>
           <td>review?
           </td>
           <td>review-
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add dyldSPI.h for linked on or after checks, and add one for link preview"
   href="https://bugs.webkit.org/show_bug.cgi?id=157401#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add dyldSPI.h for linked on or after checks, and add one for link preview"
   href="https://bugs.webkit.org/show_bug.cgi?id=157401">bug 157401</a>
              from <span class="vcard"><a class="email" href="mailto:mitz&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=278206&amp;action=diff" name="attach_278206" title="Patch">attachment 278206</a> <a href="attachment.cgi?id=278206&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=278206&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=278206&amp;action=review</a>

<span class="quote">&gt; Source/WTF/wtf/spi/darwin/dyldSPI.h:2
&gt; + * Copyright (C) 2015 Apple Inc. All rights reserved.</span >

Pretty sure this is all new 2016 stuff.

<span class="quote">&gt; Source/WTF/wtf/spi/darwin/dyldSPI.h:27
&gt; +#ifndef WTF_dyldSPI_h
&gt; +#define WTF_dyldSPI_h</span >

We’ve switched to using #pragma once in new files

<span class="quote">&gt; Source/WTF/wtf/spi/darwin/dyldSPI.h:40
&gt; +#if PLATFORM(APPLETV)
&gt; +#elif PLATFORM(IOS)
&gt; +static const uint32_t firstSDKVersionWithInitConstructorSupport = 0x80000; // iOS 8.0.0
&gt; +static const uint32_t firstSDKVersionWithLinkPreviewEnabledByDefault = 0xA0000;
&gt; +#elif PLATFORM(MAC)
&gt; +static const uint32_t firstSDKVersionWithInitConstructorSupport = 0xA0A00; // OSX 10.10.0
&gt; +#endif</span >

This things are neither dyld SPI nor WTF-related. They should stay in their respective projects.

<span class="quote">&gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h:235
&gt; + &#64;discussion The default value is NO on iOS 9, and YES on iOS linked on or after WK_IOS_TBS.</span >

TBS? The script that post-processes API headers is not going to do anything pretty with this WK_IOS_TBS (nor with WK_IOS_TBA). More importantly, anyone seeing this comment will be looking at the iOS TBA SDK, and therefore linking against that SDK. There’s no need to confuse them with telling them about behavior that won’t apply to them.

<span class="quote">&gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:493
&gt; +    static uint32_t programSDKVersion = 0;
&gt; +    if (!programSDKVersion)
&gt; +        programSDKVersion = dyld_get_program_sdk_version();</span >

Since this is C++, you just say
static uint32_t programSDKVersion = dyld_get_program_sdk_version();
and it will do one-time initialization.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>