gcc.h: add fallback for C++11 "override"

This commit is contained in:
Max Kellermann 2012-08-01 09:41:26 +02:00
parent 79200a8611
commit 0d2abdb5d9
1 changed files with 9 additions and 0 deletions

View File

@ -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 */