]> code.delx.au - gnu-emacs/blobdiff - src/frame.h
New macro GNUC_PREREQ for GCC version
[gnu-emacs] / src / frame.h
index 9de672c8635964ef0e3b8d1f0ce466d61b0c85d4..7d64e00b422a397762a70e2323d0416c28f7b492 100644 (file)
@@ -1470,7 +1470,7 @@ INLINE_HEADER_END
 /* Suppress -Wsuggest-attribute=const if there are no scroll bars.
    This is for functions like x_set_horizontal_scroll_bars that have
    no effect in this case.  */
-#if ! USE_HORIZONTAL_SCROLL_BARS && 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
+#if ! USE_HORIZONTAL_SCROLL_BARS && GNUC_PREREQ (4, 6, 0)
 # pragma GCC diagnostic ignored "-Wsuggest-attribute=const"
 #endif