X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=compat%2Fcompat.h;h=7767fe84a68580dbd2d2953f99645eda81403cac;hp=d639e0f934cec2b91ebab85574f75490fb8f347f;hb=3b24b396c4c9178603dec5380b4e89f6795dee1f;hpb=c04a432ef201e090a8711b80ad7bb175b9719fa1 diff --git a/compat/compat.h b/compat/compat.h index d639e0f9..7767fe84 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -26,6 +26,10 @@ #ifndef NOTMUCH_COMPAT_H #define NOTMUCH_COMPAT_H +#ifdef __cplusplus +extern "C" { +#endif + #if !HAVE_GETLINE #include #include @@ -38,4 +42,12 @@ getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp); #endif /* !HAVE_GETLINE */ +#if !HAVE_STRCASESTR +char* strcasestr(const char *haystack, const char *needle); +#endif /* !HAVE_STRCASESTR */ + +#ifdef __cplusplus +} +#endif + #endif /* NOTMUCH_COMPAT_H */