Changeset 237361 in webkit


Ignore:
Timestamp:
Oct 23, 2018 11:30:40 AM (6 years ago)
Author:
ap@apple.com
Message:

Really prevent PLATFORM(IOS) from being used
https://bugs.webkit.org/show_bug.cgi?id=190813

Reviewed by Tim Horton.

  • wtf/Platform.h: This relies on -Wundef, which we have enabled.
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r237329 r237361  
     12018-10-22  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Really prevent PLATFORM(IOS) from being used
     4        https://bugs.webkit.org/show_bug.cgi?id=190813
     5
     6        Reviewed by Tim Horton.
     7
     8        * wtf/Platform.h: This relies on -Wundef, which we have enabled.
     9
    1102018-10-22  Chris Dumez  <cdumez@apple.com>
    211
  • trunk/Source/WTF/wtf/Platform.h

    r237277 r237361  
    375375#if TARGET_OS_IPHONE
    376376/* FIXME (November 2018): Add WTF_OS_IOS once most patches that used it as an old
    377  * version of PLATFORM(IOS_FAMILY) are no longer relevant. */
     377 * version of OS(IOS_FAMILY) are no longer relevant.  It is currently defined so that
     378 * attempting to use it will break the build. */
     379#define WTF_OS_IOS UNDEFINED /* Please use OS(IOS_FAMILY) until a more specific macro can be added. */
    378380#define WTF_OS_IOS_FAMILY 1
    379381#elif TARGET_OS_MAC
     
    526528#elif OS(IOS_FAMILY)
    527529/* FIXME (November 2018): Add WTF_PLATFORM_IOS once most patches that used it as an old
    528  * version of PLATFORM(IOS_FAMILY) are no longer relevant. */
     530 * version of PLATFORM(IOS_FAMILY) are no longer relevant. It is currently defined so that
     531 * attempting to use it will break the build. */
     532#define WTF_PLATFORM_IOS UNDEFINED /* Please use PLATFORM(IOS_FAMILY) until a more specific macro can be added. */
    529533#define WTF_PLATFORM_IOS_FAMILY 1
    530534#if TARGET_OS_SIMULATOR
    531535/* FIXME (November 2018): Add WTF_PLATFORM_IOS_SIMULATOR once most patches that used it as an old
    532  * version of PLATFORM(IOS_FAMILY) are no longer relevant. */
     536 * version of PLATFORM(IOS_FAMILY_SIMULATOR) are no longer relevant. It is currently defined so that
     537 * attempting to use it will break the build. */
     538#define WTF_PLATFORM_IOS_SIMULATOR UNDEFINED /* Please use PLATFORM(IOS_FAMILY_SIMULATOR) until a more specific macro can be added. */
    533539#define WTF_PLATFORM_IOS_FAMILY_SIMULATOR 1
    534540#endif
Note: See TracChangeset for help on using the changeset viewer.