From 0d2abdb5d97c0f2b6d0b76356e9ce12603bd7ac2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Aug 2012 09:41:26 +0200 Subject: [PATCH] gcc.h: add fallback for C++11 "override" --- src/gcc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gcc.h b/src/gcc.h index 45f7101f3..1c6dbc532 100644 --- a/src/gcc.h +++ b/src/gcc.h @@ -60,4 +60,13 @@ # define gcc_nonnull_all #endif +#ifdef __cplusplus + +/* support for C++11 "override" was added in gcc 4.7 */ +#if !defined(__clang__) && defined(__GNUC__) && !GCC_CHECK_VERSION(4,7) +#define override +#endif + +#endif + #endif /* MPD_GCC_H */