From: Jonathan Wakely Date: Wed, 11 Mar 2009 15:18:12 +0000 (+0000) Subject: shared_ptr.h: Add include guards. X-Git-Tag: releases/gcc-4.4.0~302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32fdf2f406a4db93a66ec808812c5843c601e9b4;p=thirdparty%2Fgcc.git shared_ptr.h: Add include guards. 2009-03-11 Jonathan Wakely * include/bits/shared_ptr.h: Add include guards. * include/tr1/shared_ptr.h: Likewise. From-SVN: r144778 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b7e68d812a91..c1387acafcda 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2009-03-11 Jonathan Wakely + + * include/bits/shared_ptr.h: Add include guards. + * include/tr1/shared_ptr.h: Likewise. + 2009-03-11 Jonathan Wakely * include/std/iostream: Fix doxygen link. diff --git a/libstdc++-v3/include/bits/shared_ptr.h b/libstdc++-v3/include/bits/shared_ptr.h index 8e70984971da..5ede8ad1f007 100644 --- a/libstdc++-v3/include/bits/shared_ptr.h +++ b/libstdc++-v3/include/bits/shared_ptr.h @@ -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 #endif @@ -1589,3 +1592,5 @@ _GLIBCXX_BEGIN_NAMESPACE(std) // @} group pointer_abstractions _GLIBCXX_END_NAMESPACE + +#endif // _SHARED_PTR_H diff --git a/libstdc++-v3/include/tr1/shared_ptr.h b/libstdc++-v3/include/tr1/shared_ptr.h index a21561433d90..7725145a8232 100644 --- a/libstdc++-v3/include/tr1/shared_ptr.h +++ b/libstdc++-v3/include/tr1/shared_ptr.h @@ -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