diff options
| author | Paul Eggert | 2016-06-26 22:21:49 +0200 |
|---|---|---|
| committer | Paul Eggert | 2016-06-26 22:22:40 +0200 |
| commit | d267aea2424783f5eefb6e733a6806ffd3323fa0 (patch) | |
| tree | 79393d0b88dbb1c86153b183990add64f57611c5 | |
| parent | e26931cba81539673756f042472f723cdf28f97d (diff) | |
| download | emacs-d267aea2424783f5eefb6e733a6806ffd3323fa0.tar.gz emacs-d267aea2424783f5eefb6e733a6806ffd3323fa0.zip | |
Fix GNUC_PREREQ for GCC 2.8.1 etc.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00608.html
* src/conf_post.h (GNUC_PREREQ): Port to GCC versions like GCC
2.8.1 (1998), which come before GCC 3.0 and which have nonzero
patchlevel numbers.
| -rw-r--r-- | src/conf_post.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index 69b981feef6..99aafbffae6 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -39,7 +39,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | #ifndef __GNUC_MINOR__ | 39 | #ifndef __GNUC_MINOR__ |
| 40 | # define GNUC_PREREQ(v, w, x) false | 40 | # define GNUC_PREREQ(v, w, x) false |
| 41 | #elif ! defined __GNUC_PATCHLEVEL__ | 41 | #elif ! defined __GNUC_PATCHLEVEL__ |
| 42 | # define GNUC_PREREQ(v, w, x) ((v) < __GNUC__ + ((w) <= __GNUC_MINOR__)) | 42 | # define GNUC_PREREQ(v, w, x) \ |
| 43 | ((v) < __GNUC__ + ((w) < __GNUC_MINOR__ + ((x) == 0)) | ||
| 43 | #else | 44 | #else |
| 44 | # define GNUC_PREREQ(v, w, x) \ | 45 | # define GNUC_PREREQ(v, w, x) \ |
| 45 | ((v) < __GNUC__ + ((w) < __GNUC_MINOR__ + ((x) <= __GNUC_PATCHLEVEL__))) | 46 | ((v) < __GNUC__ + ((w) < __GNUC_MINOR__ + ((x) <= __GNUC_PATCHLEVEL__))) |