mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 02:44:53 +01:00
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>
This commit is contained in:
parent
9a1126241d
commit
a84dc2f7e6
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <strings.h>
|
||||
#include <strings.h> /* strcasecmp() in POSIX */
|
||||
#include <string.h> /* strcasecmp() in *BSD */
|
||||
|
||||
int
|
||||
main ()
|
||||
|
|
Loading…
Reference in a new issue