summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/random.tcc
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-09 11:23:39 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-09 11:23:39 +0000
commit2268897446c5ba0810c22b8924935bd54df4c401 (patch)
treebe3fc700c7224a83245390cb5a15f0dada1e15fd /libstdc++-v3/include/bits/random.tcc
parent056e71f0fbd5a81eded45888a702f04d5e0d6e8c (diff)
downloadgcc-2268897446c5ba0810c22b8924935bd54df4c401.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164074 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/random.tcc')
-rw-r--r--libstdc++-v3/include/bits/random.tcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/random.tcc b/libstdc++-v3/include/bits/random.tcc
index 690af186f96..9312038f834 100644
--- a/libstdc++-v3/include/bits/random.tcc
+++ b/libstdc++-v3/include/bits/random.tcc
@@ -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