]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-strcasestr.c
Fix operator precedence according to Brian W. Kernighan and Lorinda
[mandoc.git] / test-strcasestr.c
index 2ffb420b6bffb6c0fb97ea13064e43d27ad0f306..c3a87de82e16a433deb17df446f512e5c184b4ed 100644 (file)
@@ -1,3 +1,7 @@
+#if defined(__linux__) || defined(__MINT__)
+# define _GNU_SOURCE /* strcasestr() */
+#endif
+
 #include <string.h>
 
 int
@@ -5,5 +9,5 @@ main(void)
 {
        const char *big = "BigString";
        char *cp = strcasestr(big, "Gst");
-       return(big + 2 != cp);
+       return cp != big + 2;
 }