aboutsummaryrefslogtreecommitdiff
path: root/src/common/basictypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/basictypes.h')
-rw-r--r--src/common/basictypes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/basictypes.h b/src/common/basictypes.h
index 694f7022..84668b79 100644
--- a/src/common/basictypes.h
+++ b/src/common/basictypes.h
@@ -32,8 +32,10 @@
// A macro to disallow the copy constructor and operator= functions
// This should be used in the private: declarations for a class
+#ifndef DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&)
+#endif // DISALLOW_COPY_AND_ASSIGN
#endif // COMMON_BASICTYPES_H_