libstdc++: only pull in bits/align.h if C++11 or later

Message ID 20200912233806.2812607-1-rodgert@appliantology.com
State New
Headers show
Series
  • libstdc++: only pull in bits/align.h if C++11 or later
Related show

Commit Message

Thomas Rodgers Sept. 12, 2020, 11:38 p.m.
From: Thomas Rodgers <trodgers@redhat.com>


libstdc++-v3/ChangeLog:

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

Tested x86_64-pc-linux-gnu, committed to master.

---
 libstdc++-v3/include/std/memory | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.26.2

Patch

diff --git a/libstdc++-v3/include/std/memory b/libstdc++-v3/include/std/memory
index a56952fb114..aee7b050bd7 100644
--- a/libstdc++-v3/include/std/memory
+++ b/libstdc++-v3/include/std/memory
@@ -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>