From 7384ec199effce04e26875bd5045121527683bb2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 Dec 2017 08:40:24 +0100 Subject: [PATCH] Compiler.h: remove support for GCC 4.9 Supporting GCC 4.9 is becoming cumbersome as we refactor more code to C++14. This shouldn't be a problem for anybody, because Debian Stable (Stretch) has version 6.3, and Ubuntu LTS (Xenial) has version 5.3. --- NEWS | 1 + doc/developer.xml | 2 +- doc/user.xml | 2 +- src/Compiler.h | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index f28be7e8f..7fd9f8484 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,7 @@ ver 0.21 (not yet released) - sndio: remove support for the broken RoarAudio sndio emulation * mixer - sndio: new mixer plugin +* require GCC 5.0 ver 0.20.14 (not yet released) * database diff --git a/doc/developer.xml b/doc/developer.xml index ee94c2d55..0f2fbc219 100644 --- a/doc/developer.xml +++ b/doc/developer.xml @@ -47,7 +47,7 @@ the code should be C++14 compliant, and must compile with - GCC 4.9 and + GCC 5.0 and clang 3.4 diff --git a/doc/user.xml b/doc/user.xml index 616f137df..74795b882 100644 --- a/doc/user.xml +++ b/doc/user.xml @@ -87,7 +87,7 @@ cd mpd-version a C++14 compiler (e.g. gcc 4.9 or gcc 5.0 or clang 3.9) diff --git a/src/Compiler.h b/src/Compiler.h index 08c93a142..02b76bf71 100644 --- a/src/Compiler.h +++ b/src/Compiler.h @@ -62,8 +62,8 @@ # error Sorry, your clang version is too old. You need at least version 3.1. # endif #elif defined(__GNUC__) -# if GCC_OLDER_THAN(4,9) -# error Sorry, your gcc version is too old. You need at least version 4.9. +# if GCC_OLDER_THAN(5,0) +# error Sorry, your gcc version is too old. You need at least version 5.0. # endif #else # warning Untested compiler. Use at your own risk!