Make *abs() and *div() work on CloudABI.
According to POSIX, *abs() and *div() are allowed to be macros (in addition to being functions). Make sure we undefine these, so that std::*abs() and std::*div() work as expected. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@232379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
438a5c9fdf
commit
84b6c1f402
@ -247,7 +247,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD
|
|||||||
|
|
||||||
using::imaxdiv_t;
|
using::imaxdiv_t;
|
||||||
|
|
||||||
|
#undef imaxabs
|
||||||
using::imaxabs;
|
using::imaxabs;
|
||||||
|
#undef imaxdiv
|
||||||
using::imaxdiv;
|
using::imaxdiv;
|
||||||
using::strtoimax;
|
using::strtoimax;
|
||||||
using::strtoumax;
|
using::strtoumax;
|
||||||
|
@ -131,14 +131,20 @@ using ::getenv;
|
|||||||
using ::system;
|
using ::system;
|
||||||
using ::bsearch;
|
using ::bsearch;
|
||||||
using ::qsort;
|
using ::qsort;
|
||||||
|
#undef abs
|
||||||
using ::abs;
|
using ::abs;
|
||||||
|
#undef labs
|
||||||
using ::labs;
|
using ::labs;
|
||||||
#ifndef _LIBCPP_HAS_NO_LONG_LONG
|
#ifndef _LIBCPP_HAS_NO_LONG_LONG
|
||||||
|
#undef llabs
|
||||||
using ::llabs;
|
using ::llabs;
|
||||||
#endif // _LIBCPP_HAS_NO_LONG_LONG
|
#endif // _LIBCPP_HAS_NO_LONG_LONG
|
||||||
|
#undef div
|
||||||
using ::div;
|
using ::div;
|
||||||
|
#undef ldiv
|
||||||
using ::ldiv;
|
using ::ldiv;
|
||||||
#ifndef _LIBCPP_HAS_NO_LONG_LONG
|
#ifndef _LIBCPP_HAS_NO_LONG_LONG
|
||||||
|
#undef lldiv
|
||||||
using ::lldiv;
|
using ::lldiv;
|
||||||
#endif // _LIBCPP_HAS_NO_LONG_LONG
|
#endif // _LIBCPP_HAS_NO_LONG_LONG
|
||||||
using ::mblen;
|
using ::mblen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user