Changeset 142399 in webkit
- Timestamp:
- Feb 10, 2013 6:13:23 AM (11 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r142395 r142399 1 2013-02-10 Laszlo Gombos <l.gombos@samsung.com> 2 3 Refactor the way HAVE_XXX macros are set 4 https://bugs.webkit.org/show_bug.cgi?id=108132 5 6 Reviewed by Benjamin Poulain. 7 8 OS(WINDOWS) and OS(UNIX) are so broadly defined that for each 9 builds exactly one of them is enabled. Use this assumption to 10 cleanup Platform.h. 11 12 * wtf/Platform.h: 13 1 14 2013-02-10 Jae Hyun Park <jae.park08@gmail.com> 2 15 -
trunk/Source/WTF/wtf/Platform.h
r142395 r142399 679 679 680 680 #if OS(UNIX) 681 #define HAVE_ERRNO_H 1 682 #define HAVE_MMAP 1 681 683 #define HAVE_SIGNAL_H 1 684 #define HAVE_STRINGS_H 1 685 #define HAVE_SYS_PARAM_H 1 686 #define HAVE_SYS_TIME_H 1 682 687 #define WTF_USE_OS_RANDOMNESS 1 688 #endif /* OS(UNIX) */ 689 690 #if OS(UNIX) && !OS(ANDROID) && !OS(QNX) 691 #define HAVE_LANGINFO_H 1 683 692 #endif 684 693 … … 709 718 #if OS(DARWIN) 710 719 711 #define HAVE_ERRNO_H 1712 #define HAVE_LANGINFO_H 1713 #define HAVE_MMAP 1714 720 #define HAVE_MERGESORT 1 715 #define HAVE_STRINGS_H 1716 #define HAVE_SYS_PARAM_H 1717 #define HAVE_SYS_TIME_H 1718 721 #define HAVE_SYS_TIMEB_H 1 719 722 #define WTF_USE_ACCELERATE 1 … … 723 726 #define HAVE_DISPATCH_H 1 724 727 #define HAVE_HOSTED_CORE_ANIMATION 1 728 #define HAVE_MADV_FREE 1 729 #define HAVE_PTHREAD_SETNAME_NP 1 725 730 726 731 #if !PLATFORM(IOS) 727 732 #define HAVE_MADV_FREE_REUSE 1 728 #define HAVE_MADV_FREE 1 729 #define HAVE_PTHREAD_SETNAME_NP 1 730 #endif 731 732 #endif 733 734 #if PLATFORM(IOS) 735 #define HAVE_MADV_FREE 1 736 #define HAVE_PTHREAD_SETNAME_NP 1 737 #endif 738 739 #elif OS(WINDOWS) 740 741 #if !OS(WINCE) 733 #endif /* !PLATFORM(IOS) */ 734 735 #endif /* PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 */ 736 737 #endif /* OS(DARWIN) */ 738 739 #if OS(WINDOWS) && !OS(WINCE) 742 740 #define HAVE_SYS_TIMEB_H 1 743 741 #define HAVE_ALIGNED_MALLOC 1 744 742 #define HAVE_ISDEBUGGERPRESENT 1 745 743 #endif 744 745 #if OS(WINDOWS) 746 746 #define HAVE_VIRTUALALLOC 1 747 747 #define WTF_USE_OS_RANDOMNESS 1 748 749 #elif OS(QNX) 750 751 #define HAVE_ERRNO_H 1 752 #define HAVE_MMAP 1 748 #endif 749 750 #if OS(QNX) 753 751 #define HAVE_MADV_FREE_REUSE 1 754 752 #define HAVE_MADV_FREE 1 755 #define HAVE_STRINGS_H 1756 #define HAVE_SYS_PARAM_H 1757 #define HAVE_SYS_TIME_H 1758 753 #define WTF_USE_PTHREADS 1 759 760 #elif OS(ANDROID)761 762 #define HAVE_ERRNO_H 1763 #define HAVE_MMAP 1764 #define HAVE_STRINGS_H 1765 #define HAVE_SYS_PARAM_H 1766 #define HAVE_SYS_TIME_H 1767 768 #else769 770 /* FIXME: is this actually used or do other platforms generate their own config.h? */771 772 #define HAVE_ERRNO_H 1773 #define HAVE_LANGINFO_H 1774 #define HAVE_MMAP 1775 #define HAVE_STRINGS_H 1776 #define HAVE_SYS_PARAM_H 1777 #define HAVE_SYS_TIME_H 1778 779 754 #endif 780 755
Note: See TracChangeset
for help on using the changeset viewer.