From 24782c6aa7abf396de057d7eb15035b4c594a3b4 Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Sun, 8 Jan 2012 12:46:11 -0800 Subject: Add a macro GCC_VERSION and use it to control code paths. Code paths that work on lower version of GCC are required because Mac OS will never move beyond GCC 4.2. I added the code paths so that Mac builds can pass. Change-Id: I4a3340355133dff4a5107b94970bc809d9de264e --- src/logging.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/logging.h') diff --git a/src/logging.h b/src/logging.h index 51d4496..9e10bd9 100644 --- a/src/logging.h +++ b/src/logging.h @@ -191,7 +191,11 @@ class Dumpable { private: T& value_; + +// TODO: Remove the #if when Mac OS build server no longer uses GCC 4.2.*. +#if GCC_VERSION >= 40300 DISALLOW_COPY_AND_ASSIGN(Dumpable); +#endif }; template -- cgit v1.1