diff options
author | Max Kellermann <max@duempel.org> | 2012-08-01 09:44:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-01 09:59:12 +0200 |
commit | 37b92967c5a8d233536216ac435ebb0d0b17782c (patch) | |
tree | 95fe0d231af77d47c885decf34f4b9a859885a8e /src/gcc.h | |
parent | 768504e956f711ef98268ac8cfca308b11fa4978 (diff) | |
download | mpd-37b92967c5a8d233536216ac435ebb0d0b17782c.tar.gz mpd-37b92967c5a8d233536216ac435ebb0d0b17782c.tar.xz mpd-37b92967c5a8d233536216ac435ebb0d0b17782c.zip |
gcc.h: require g++ 4.5 or newer
Soon we'll use C++11 lambdas which were implemented in gcc 4.5.
Diffstat (limited to 'src/gcc.h')
-rw-r--r-- | src/gcc.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -62,6 +62,10 @@ #ifdef __cplusplus +#if !defined(__clang__) && defined(__GNUC__) && !GCC_CHECK_VERSION(4,5) +#error Your gcc version is too old. MPD requires gcc 4.5 or newer. +#endif + /* support for C++11 "override" was added in gcc 4.7 */ #if !defined(__clang__) && defined(__GNUC__) && !GCC_CHECK_VERSION(4,7) #define override |