Changeset 180482 in webkit


Ignore:
Timestamp:
Feb 21, 2015 5:56:39 PM (9 years ago)
Author:
ddkilzer@apple.com
Message:

[iOS] Fix build failure after including CoreMediaSoftLink.h in WebVideoFullscreenInterfaceAVKit.mm
<http://webkit.org/b/141816>

Attempt to fix the following build failure:

WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:68:1: error: call to 'CoreMediaLibrary' is ambiguous
SOFT_LINK(CoreMedia, CMTimeRangeContainsTime, Boolean, (CMTimeRange range, CMTime time), (range, time))

In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
In file included from WebCore/platform/cf/CoreMediaSoftLink.h:32:
WebCore/platform/mac/SoftLinking.h:107:79: note: expanded from macro 'SOFT_LINK'
<scratch space>:58:1: note: expanded from here
CoreMediaLibrary
~
In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
WebCore/platform/cf/CoreMediaSoftLink.h:35:1: note: candidate function
SOFT_LINK_FRAMEWORK_HEADER(WebCore, CoreMedia)

In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
In file included from WebCore/platform/cf/CoreMediaSoftLink.h:32:
WebCore/platform/mac/SoftLinking.h:298:18: note: expanded from macro 'SOFT_LINK_FRAMEWORK_HEADER'
<scratch space>:42:1: note: expanded from here
CoreMediaLibrary

WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:67:1: note: candidate function
SOFT_LINK_FRAMEWORK(CoreMedia)

In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
In file included from WebCore/platform/cf/CoreMediaSoftLink.h:32:
WebCore/platform/mac/SoftLinking.h:46:18: note: expanded from macro 'SOFT_LINK_FRAMEWORK'
<scratch space>:51:1: note: expanded from here
CoreMediaLibrary

  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm: Remove the

SOFT_LINK_FRAMEWORK(CoreMedia) macro since the remaining
SOFT_LINK() and SOFT_LINK_CONSTANT() macros can use the
CoreMediaLibrary() method exposed by CoreMediaSoftLink.h.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r180481 r180482  
     12015-02-21  David Kilzer  <ddkilzer@apple.com>
     2
     3        [iOS] Fix build failure after including CoreMediaSoftLink.h in WebVideoFullscreenInterfaceAVKit.mm
     4        <http://webkit.org/b/141816>
     5
     6        Attempt to fix the following build failure:
     7
     8            WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:68:1: error: call to 'CoreMediaLibrary' is ambiguous
     9            SOFT_LINK(CoreMedia, CMTimeRangeContainsTime, Boolean, (CMTimeRange range, CMTime time), (range, time))
     10            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     11            In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
     12            In file included from WebCore/platform/cf/CoreMediaSoftLink.h:32:
     13            WebCore/platform/mac/SoftLinking.h:107:79: note: expanded from macro 'SOFT_LINK'
     14            <scratch space>:58:1: note: expanded from here
     15            CoreMediaLibrary
     16            ^~~~~~~~~~~~~~~~
     17            In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
     18            WebCore/platform/cf/CoreMediaSoftLink.h:35:1: note: candidate function
     19            SOFT_LINK_FRAMEWORK_HEADER(WebCore, CoreMedia)
     20            ^
     21            In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
     22            In file included from WebCore/platform/cf/CoreMediaSoftLink.h:32:
     23            WebCore/platform/mac/SoftLinking.h:298:18: note: expanded from macro 'SOFT_LINK_FRAMEWORK_HEADER'
     24            <scratch space>:42:1: note: expanded from here
     25            CoreMediaLibrary
     26            ^
     27            WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:67:1: note: candidate function
     28            SOFT_LINK_FRAMEWORK(CoreMedia)
     29            ^
     30            In file included from WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:34:
     31            In file included from WebCore/platform/cf/CoreMediaSoftLink.h:32:
     32            WebCore/platform/mac/SoftLinking.h:46:18: note: expanded from macro 'SOFT_LINK_FRAMEWORK'
     33            <scratch space>:51:1: note: expanded from here
     34            CoreMediaLibrary
     35            ^
     36
     37        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm: Remove the
     38        SOFT_LINK_FRAMEWORK(CoreMedia) macro since the remaining
     39        SOFT_LINK() and SOFT_LINK_CONSTANT() macros can use the
     40        CoreMediaLibrary() method exposed by CoreMediaSoftLink.h.
     41
    1422015-02-21  David Kilzer  <ddkilzer@apple.com>
    243
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r180366 r180482  
    3232
    3333#import "AVKitSPI.h"
    34 #import "CoreMediaSoftLink.h"
    3534#import "Logging.h"
    3635#import "GeometryUtilities.h"
     
    4948using namespace WebCore;
    5049
     50// Soft-linking headers must be included last since they #define functions, constants, etc.
     51#import "CoreMediaSoftLink.h"
     52
    5153SOFT_LINK_FRAMEWORK(AVFoundation)
    5254SOFT_LINK_CLASS(AVFoundation, AVPlayerLayer)
     
    6567SOFT_LINK_CLASS(UIKit, UIColor)
    6668
    67 SOFT_LINK_FRAMEWORK(CoreMedia)
    6869SOFT_LINK(CoreMedia, CMTimeRangeContainsTime, Boolean, (CMTimeRange range, CMTime time), (range, time))
    6970SOFT_LINK(CoreMedia, CMTimeRangeMake, CMTimeRange, (CMTime start, CMTime duration), (start, duration))
Note: See TracChangeset for help on using the changeset viewer.