<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:
Howard Hinnant 2012-07-26 17:09:09 +00:00
parent f3d62ea57f
commit ca8eb830dd
3 changed files with 3 additions and 1 deletions
include
test/localization/locale.stdcvt

@ -593,7 +593,7 @@ template <class BidirectionalIterator, class Compare>
#include <utility>
#include <memory>
#include <iterator>
#include <cstdlib>
#include <cstddef>
#include <__undef_min_max>

@ -20,6 +20,7 @@
// Not a portable test
#include <codecvt>
#include <cstdlib>
#include <cassert>
int outstanding_news = 0;

@ -20,6 +20,7 @@
// Not a portable test
#include <codecvt>
#include <cstdlib>
#include <cassert>
int outstanding_news = 0;