<algorithm> no longer needs to include <cstdlib>, but can get away with just <cstddef>. This was brought to my attention by Salvatore Benedetto in his port to a bare-metal coretex-m3. This exposed two test bugs where an explicit #include <cstdlib> was needed.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@160786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3d62ea57f
commit
ca8eb830dd
@ -593,7 +593,7 @@ template <class BidirectionalIterator, class Compare>
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <cstdlib>
|
#include <cstddef>
|
||||||
|
|
||||||
#include <__undef_min_max>
|
#include <__undef_min_max>
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
// Not a portable test
|
// Not a portable test
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
#include <cstdlib>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
int outstanding_news = 0;
|
int outstanding_news = 0;
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
// Not a portable test
|
// Not a portable test
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
#include <cstdlib>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
int outstanding_news = 0;
|
int outstanding_news = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user