]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/newlib-tumbl.git/blobdiff - newlib/libc/string/strcasestr.c
* libc/include/sys/features.h (__GNUC_PREREQ): Define. Use
[fpga/lx-cpu1/newlib-tumbl.git] / newlib / libc / string / strcasestr.c
index 91783164c96930f8b4b9f79d68cc185d4c6e64d0..1bde1cdbfb7b91897a7941af5a52774daf070083 100644 (file)
@@ -84,8 +84,7 @@ QUICKREF
   (!memchr ((h) + (h_l), '\0', (j) + (n_l) - (h_l))    \
    && ((h_l) = (j) + (n_l)))
 # define CANON_ELEMENT(c) tolower (c)
-#if defined (__GNUC__) && \
-    ((__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __GNUC__ > 4)
+#if __GNUC_PREREQ (4, 2)
 /* strncasecmp uses signed char, CMP_FUNC is expected to use unsigned char. */
 #pragma GCC diagnostic ignored "-Wpointer-sign"
 #endif