libstdc++: only pull in bits/align.h if C++11 or later
authorThomas Rodgers <trodgers@redhat.com>
Fri, 11 Sep 2020 20:51:07 +0000 (13:51 -0700)
committerThomas Rodgers <trodgers@redhat.com>
Fri, 11 Sep 2020 21:08:13 +0000 (14:08 -0700)
libstdc++-v3/ChangeLog:

* include/std/memory: Move #include <bits/align.h> inside C++11
conditional includes.

libstdc++-v3/include/std/memory

index a56952fb114bf4d117028769f98417362afb7be2..aee7b050bd732a00eb89ae6a796f658dad8a1600 100644 (file)
@@ -61,7 +61,6 @@
  */
 
 #include <bits/stl_algobase.h>
-#include <bits/align.h>
 #include <bits/allocator.h>
 #include <bits/stl_construct.h>
 #include <bits/stl_uninitialized.h>
@@ -75,6 +74,7 @@
 #  include <iosfwd>              // std::basic_ostream
 #  include <ext/atomicity.h>
 #  include <ext/concurrence.h>
+#  include <bits/align.h>
 #  include <bits/functexcept.h>
 #  include <bits/stl_function.h>  // std::less
 #  include <bits/uses_allocator.h>