Commit 0d2abdb5 authored by Max Kellermann's avatar Max Kellermann

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

parent 79200a86
...@@ -60,4 +60,13 @@ ...@@ -60,4 +60,13 @@
# define gcc_nonnull_all # define gcc_nonnull_all
#endif #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 */ #endif /* MPD_GCC_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment