diff options
| author | Ed Schouten <ed@nuxi.nl> | 2015-03-16 14:27:44 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@nuxi.nl> | 2015-03-16 14:27:44 +0000 |
| commit | 74bbf7c7eed54cd01ad49c36820269bb7bfb5592 (patch) | |
| tree | 8cc3519db95c9528d0d0e3f757dd9a107c14a40b /libcxx/include/cinttypes | |
| parent | 933f51af54b1818f802ae4a6e0185624f3caf61f (diff) | |
| download | bcm5719-llvm-74bbf7c7eed54cd01ad49c36820269bb7bfb5592.tar.gz bcm5719-llvm-74bbf7c7eed54cd01ad49c36820269bb7bfb5592.zip | |
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.
llvm-svn: 232379
Diffstat (limited to 'libcxx/include/cinttypes')
| -rw-r--r-- | libcxx/include/cinttypes | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/cinttypes b/libcxx/include/cinttypes index 786692b8fec..cfd763c98f4 100644 --- a/libcxx/include/cinttypes +++ b/libcxx/include/cinttypes @@ -247,7 +247,9 @@ _LIBCPP_BEGIN_NAMESPACE_STD using::imaxdiv_t; +#undef imaxabs using::imaxabs; +#undef imaxdiv using::imaxdiv; using::strtoimax; using::strtoumax; |

