shared_ptr.h: Add include guards.

2009-03-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/bits/shared_ptr.h: Add include guards.
	* include/tr1/shared_ptr.h: Likewise.

From-SVN: r144778
This commit is contained in:
Jonathan Wakely 2009-03-11 15:18:12 +00:00 committed by Jonathan Wakely
parent 5df9ac4b39
commit 32fdf2f406
3 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-03-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/shared_ptr.h: Add include guards.
* include/tr1/shared_ptr.h: Likewise.
2009-03-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/iostream: Fix doxygen link.

View file

@ -51,6 +51,9 @@
* You should not attempt to use it directly.
*/
#ifndef _SHARED_PTR_H
#define _SHARED_PTR_H 1
#ifndef __GXX_EXPERIMENTAL_CXX0X__
# include <c++0x_warning.h>
#endif
@ -1589,3 +1592,5 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// @} group pointer_abstractions
_GLIBCXX_END_NAMESPACE
#endif // _SHARED_PTR_H

View file

@ -51,6 +51,9 @@
* You should not attempt to use it directly.
*/
#ifndef _TR1_SHARED_PTR_H
#define _TR1_SHARED_PTR_H 1
#if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
# error TR1 header cannot be included from C++0x header
#endif
@ -1018,3 +1021,5 @@ namespace tr1
}
}
#endif // _TR1_SHARED_PTR_H