emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d267aea: Fix GNUC_PREREQ for GCC 2.8.1 etc.


From: Paul Eggert
Subject: [Emacs-diffs] master d267aea: Fix GNUC_PREREQ for GCC 2.8.1 etc.
Date: Sun, 26 Jun 2016 20:22:45 +0000 (UTC)

branch: master
commit d267aea2424783f5eefb6e733a6806ffd3323fa0
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 src/conf_post.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/conf_post.h b/src/conf_post.h
index 69b981f..99aafbf 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/>.  */
 #ifndef __GNUC_MINOR__
 # define GNUC_PREREQ(v, w, x) false
 #elif ! defined __GNUC_PATCHLEVEL__
-# define GNUC_PREREQ(v, w, x) ((v) < __GNUC__ + ((w) <= __GNUC_MINOR__))
+# define GNUC_PREREQ(v, w, x) \
+    ((v) < __GNUC__ + ((w) < __GNUC_MINOR__ + ((x) == 0))
 #else
 # define GNUC_PREREQ(v, w, x) \
     ((v) < __GNUC__ + ((w) < __GNUC_MINOR__ + ((x) <= __GNUC_PATCHLEVEL__)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]