Changeset 207136 in webkit


Ignore:
Timestamp:
Oct 11, 2016 7:09:51 AM (8 years ago)
Author:
pvollan@apple.com
Message:

[Win] Compile fix.
https://bugs.webkit.org/show_bug.cgi?id=163272

Reviewed by Brent Fulgham.

When compiling with older SDKs, some CoreText symbols are redefined.
This patch checks if the relevant CoreText header file has been
included before defining the symbol.

  • platform/spi/win/CoreTextSPIWin.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207111 r207136  
     12016-10-11  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [Win] Compile fix.
     4        https://bugs.webkit.org/show_bug.cgi?id=163272
     5
     6        Reviewed by Brent Fulgham.
     7
     8        When compiling with older SDKs, some CoreText symbols are redefined.
     9        This patch checks if the relevant CoreText header file has been
     10        included before defining the symbol.
     11
     12        * platform/spi/win/CoreTextSPIWin.h:
     13
    1142016-10-11  Antoine Quint  <graouts@apple.com>
    215
  • trunk/Source/WebCore/platform/spi/win/CoreTextSPIWin.h

    r206584 r207136  
    2828#include <CoreFoundation/CoreFoundation.h>
    2929#include <CoreGraphics/CoreGraphics.h>
    30 #include <CoreText/CTDefines.h>
    31 #include <CoreText/CTFontDescriptor.h>
     30#include <CoreText/CoreText.h>
    3231
    3332WTF_EXTERN_C_BEGIN
     
    4140CT_EXPORT const CFStringRef kCTForegroundColorFromContextAttributeName;
    4241
     42// This enum is defined in CTFont.h. To avoid redefinition, only define it here if CTFont.h has not been included.
     43#ifndef __CTFONT__
    4344typedef CF_OPTIONS(uint32_t, CTFontTableOptions)
    4445{
     
    4647    kCTFontTableOptionExcludeSynthetic = (1 << 0)
    4748};
     49#endif
    4850
    4951CTFontRef CTFontCreateWithName(CFStringRef, CGFloat size, const CGAffineTransform*);
Note: See TracChangeset for help on using the changeset viewer.