Changeset 140988 in webkit


Ignore:
Timestamp:
Jan 28, 2013 11:56:41 AM (11 years ago)
Author:
ddkilzer@apple.com
Message:

BUILD FIX: Platform.h:1212:22: error: 'MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]

This fixes the following build error introduced in r140366 for
Bug 107098:

Platform.h:1212:22: error: 'MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
#if PLATFORM(MAC) &&
MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS)


1 error generated.

  • wtf/Platform.h: Check !PLATFORM(IOS) first so that iOS builds

do not try to evaluate MAC_OS_X_VERSION_MIN_REQUIRED.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r140983 r140988  
     12013-01-28  David Kilzer  <ddkilzer@apple.com>
     2
     3        BUILD FIX: Platform.h:1212:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
     4
     5        This fixes the following build error introduced in r140366 for
     6        Bug 107098:
     7
     8            Platform.h:1212:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
     9            #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS)
     10                                 ^
     11            1 error generated.
     12
     13        * wtf/Platform.h: Check !PLATFORM(IOS) first so that iOS builds
     14        do not try to evaluate __MAC_OS_X_VERSION_MIN_REQUIRED.
     15
    1162013-01-28  Adam Barth  <abarth@webkit.org>
    217
  • trunk/Source/WTF/wtf/Platform.h

    r140983 r140988  
    12061206#endif
    12071207
    1208 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !PLATFORM(IOS)
     1208#if !PLATFORM(IOS) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
    12091209#define WTF_USE_CONTENT_FILTERING 1
    12101210#endif
Note: See TracChangeset for help on using the changeset viewer.