OLD | NEW |
1 // -*- C++ -*- | 1 // -*- C++ -*- |
2 //===--------------------------- __config ---------------------------------===// | 2 //===--------------------------- __config ---------------------------------===// |
3 // | 3 // |
4 // The LLVM Compiler Infrastructure | 4 // The LLVM Compiler Infrastructure |
5 // | 5 // |
6 // This file is dual licensed under the MIT and the University of Illinois Open | 6 // This file is dual licensed under the MIT and the University of Illinois Open |
7 // Source Licenses. See LICENSE.TXT for details. | 7 // Source Licenses. See LICENSE.TXT for details. |
8 // | 8 // |
9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
10 | 10 |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 #endif | 640 #endif |
641 | 641 |
642 #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__) | 642 #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__) |
643 #define _LIBCPP_WCTYPE_IS_MASK | 643 #define _LIBCPP_WCTYPE_IS_MASK |
644 #endif | 644 #endif |
645 | 645 |
646 #if defined(ELAST) | 646 #if defined(ELAST) |
647 #define _LIBCPP_ELAST ELAST | 647 #define _LIBCPP_ELAST ELAST |
648 #elif defined(__linux__) | 648 #elif defined(__linux__) |
649 #define _LIBCPP_ELAST 4095 | 649 #define _LIBCPP_ELAST 4095 |
| 650 // @LOCALMOD-START |
| 651 #elif defined(__native_client__) |
| 652 // NaCl doesn't have ELAST or __ELASTERROR |
| 653 // @LOCALMOD-END |
650 #elif defined(_NEWLIB_VERSION) | 654 #elif defined(_NEWLIB_VERSION) |
651 #define _LIBCPP_ELAST __ELASTERROR | 655 #define _LIBCPP_ELAST __ELASTERROR |
652 #elif defined(__APPLE__) | 656 #elif defined(__APPLE__) |
653 // Not _LIBCPP_ELAST needed on Apple | 657 // Not _LIBCPP_ELAST needed on Apple |
654 #elif defined(__sun__) | 658 #elif defined(__sun__) |
655 #define _LIBCPP_ELAST ESTALE | 659 #define _LIBCPP_ELAST ESTALE |
656 #else | 660 #else |
657 // Warn here so that the person doing the libcxx port has an easier time: | 661 // Warn here so that the person doing the libcxx port has an easier time: |
658 #warning This platform's ELAST hasn't been ported yet | 662 #warning This platform's ELAST hasn't been ported yet |
659 #endif | 663 #endif |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 # elif (defined(_MSC_VER) && !defined(__clang__)) && !defined(_CPPRTTI) | 711 # elif (defined(_MSC_VER) && !defined(__clang__)) && !defined(_CPPRTTI) |
708 # define _LIBCPP_NO_RTTI | 712 # define _LIBCPP_NO_RTTI |
709 # endif | 713 # endif |
710 #endif | 714 #endif |
711 | 715 |
712 #ifndef _LIBCPP_WEAK | 716 #ifndef _LIBCPP_WEAK |
713 # define _LIBCPP_WEAK __attribute__((__weak__)) | 717 # define _LIBCPP_WEAK __attribute__((__weak__)) |
714 #endif | 718 #endif |
715 | 719 |
716 #endif // _LIBCPP_CONFIG | 720 #endif // _LIBCPP_CONFIG |
OLD | NEW |