Add #ifdef to guard against macro redefinition if this is included in another

Google project that also defines this.
This commit is contained in:
Peter Kasting 2016-05-16 14:30:12 -07:00 committed by Steinar H. Gunderson
parent 0000f997dd
commit 971613510f

View file

@ -80,9 +80,11 @@ typedef unsigned long long uint64;
typedef std::string string; typedef std::string string;
#ifndef DISALLOW_COPY_AND_ASSIGN
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \ #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \ TypeName(const TypeName&); \
void operator=(const TypeName&) void operator=(const TypeName&)
#endif
#if !@ac_cv_have_sys_uio_h@ #if !@ac_cv_have_sys_uio_h@
// Windows does not have an iovec type, yet the concept is universally useful. // Windows does not have an iovec type, yet the concept is universally useful.