]> git.cworth.org Git - notmuch/commit
compat: probe for strcasestr more thoroughly
authorMichael J Gruber <git@grubix.eu>
Sat, 26 Aug 2023 14:53:12 +0000 (16:53 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 27 Aug 2023 22:39:23 +0000 (19:39 -0300)
commita84dc2f7e64e70bd9696efe933671b2cbdfcd329
tree938cdcc51b3aacef0d4819feacf4d31c73c773d3
parent9a1126241d6c4a12610b5de61044606352ca4712
compat: probe for strcasestr more thoroughly

Depending on compiler (gcc, g++, clang) and standard options (c99, c11),
string.h may or may not include strings.h, leading to possibly missing
or conflicting declarations of strcasestr.

Include both so that both detection and compilation phases use the same
(possibly optimised) implementations.

Suggested-by: Thomas Schneider <qsx@chaotikum.eu>
Suggested-by: Florian Weimer <fweimer@redhat.com>
Suggested-by: Tomi Ollila <tomi.ollila@iki.fi>
compat/have_strcasestr.c