diff options
author | Max Kellermann <max@duempel.org> | 2012-08-01 09:41:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-01 09:59:12 +0200 |
commit | 0d2abdb5d97c0f2b6d0b76356e9ce12603bd7ac2 (patch) | |
tree | a2f37167a5defc1b94ab4ea22b18641d53c05820 /src/gcc.h | |
parent | 79200a861102168d95a67a4fa2ba9223923d5f6b (diff) | |
download | mpd-0d2abdb5d97c0f2b6d0b76356e9ce12603bd7ac2.tar.gz mpd-0d2abdb5d97c0f2b6d0b76356e9ce12603bd7ac2.tar.xz mpd-0d2abdb5d97c0f2b6d0b76356e9ce12603bd7ac2.zip |
gcc.h: add fallback for C++11 "override"
Diffstat (limited to '')
-rw-r--r-- | src/gcc.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 */ |