]> code.delx.au - gnu-emacs/commitdiff
Fix GNUC_PREREQ off-by-1 typo
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jun 2016 10:44:39 +0000 (12:44 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jun 2016 10:45:34 +0000 (12:45 +0200)
Problem reported by Martin Rudalics in:
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00587.html
* src/conf_post.h (GNUC_PREREQ) [__GNUC_PATCHLEVEL__]:
Fix < vs <= typo.

src/conf_post.h

index 7aa5baeb30e87c2087062aa7cf89960b8b2185eb..69b981feef6952cb04917fb113e05dd49c76812a 100644 (file)
@@ -42,7 +42,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 # define GNUC_PREREQ(v, w, x) ((v) < __GNUC__ + ((w) <= __GNUC_MINOR__))
 #else
 # define GNUC_PREREQ(v, w, x) \
-    ((v) < __GNUC__ + ((w) <= __GNUC_MINOR__ + ((x) <= __GNUC_PATCHLEVEL__)))
+    ((v) < __GNUC__ + ((w) < __GNUC_MINOR__ + ((x) <= __GNUC_PATCHLEVEL__)))
 #endif
 
 /* The type of bool bitfields.  Needed to compile Objective-C with