re PR libstdc++/45613 (bits/random.h misses include guards)
2010-09-09 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/45613 * include/bits/random.tcc: Add missing include guards. * include/bits/random.h: Likewise. * include/tr1/random.tcc: Likewise. From-SVN: r164074
This commit is contained in:
parent
61356c15ac
commit
06f29237d7
4 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-09-09 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR libstdc++/45613
|
||||
* include/bits/random.tcc: Add missing include guards.
|
||||
* include/bits/random.h: Likewise.
|
||||
* include/tr1/random.tcc: Likewise.
|
||||
|
||||
2010-09-09 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* libsupc++/cxxabi.h: Uglify nothrow to __nothrow__; fix a few
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
* You should not attempt to use it directly.
|
||||
*/
|
||||
|
||||
#ifndef _RANDOM_H
|
||||
#define _RANDOM_H 1
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace std
|
||||
|
@ -5337,6 +5340,6 @@ namespace std
|
|||
/* @} */ // group random_utilities
|
||||
|
||||
/* @} */ // group random
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -27,6 +27,9 @@
|
|||
* You should not attempt to use it directly.
|
||||
*/
|
||||
|
||||
#ifndef _RANDOM_TCC
|
||||
#define _RANDOM_TCC 1
|
||||
|
||||
#include <numeric> // std::accumulate and std::partial_sum
|
||||
|
||||
namespace std
|
||||
|
@ -2815,3 +2818,5 @@ namespace std
|
|||
return __sum / __tmp;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
* You should not attempt to use it directly.
|
||||
*/
|
||||
|
||||
#ifndef _GLIBCXX_TR1_RANDOM_TCC
|
||||
#define _GLIBCXX_TR1_RANDOM_TCC 1
|
||||
|
||||
namespace std
|
||||
{
|
||||
namespace tr1
|
||||
|
@ -1708,3 +1711,5 @@ namespace tr1
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue