diff options
author | Shih-wei Liao <sliao@google.com> | 2012-01-08 12:46:11 -0800 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2012-01-13 10:08:08 -0800 |
commit | 24782c6aa7abf396de057d7eb15035b4c594a3b4 (patch) | |
tree | 2cf92cf18e0b6610a4eb4a355b32b84b6c77de52 /src/logging.h | |
parent | 9f23e24937efe175d24bb712010690a2358e61ca (diff) | |
download | art-24782c6aa7abf396de057d7eb15035b4c594a3b4.zip art-24782c6aa7abf396de057d7eb15035b4c594a3b4.tar.gz art-24782c6aa7abf396de057d7eb15035b4c594a3b4.tar.bz2 |
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
Diffstat (limited to 'src/logging.h')
-rw-r--r-- | src/logging.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<typename T> |