X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/9df73edf21694f640f489f84755d19ea5ca9ddaa..1ec67c1af1b363b2138d23adb47cf9a20831b5d1:/test-strcasestr.c diff --git a/test-strcasestr.c b/test-strcasestr.c index 2ffb420b..c3a87de8 100644 --- a/test-strcasestr.c +++ b/test-strcasestr.c @@ -1,3 +1,7 @@ +#if defined(__linux__) || defined(__MINT__) +# define _GNU_SOURCE /* strcasestr() */ +#endif + #include int @@ -5,5 +9,5 @@ main(void) { const char *big = "BigString"; char *cp = strcasestr(big, "Gst"); - return(big + 2 != cp); + return cp != big + 2; }